issues

package
v0.0.0-...-da893e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 10, 2020 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	//	*github.Client
	*github.IssuesEvent
	iface.Issues
}

Event encapsulates operations on a *github.IssuesEvent.

func NewEvent

func NewEvent(issues iface.Issues, event *github.IssuesEvent) *Event

NewEvent creates a new Event based on the given client and event. func NewEvent(client *github.Client, event *github.IssuesEvent) *Event {

func (*Event) AddIssueLabels

func (ev *Event) AddIssueLabels(
	ctx context.Context, labels []string) ([]*github.Label, *github.Response, error)

AddIssueLabel adds a label to the event issue.

func (*Event) CloseIssue

func (ev *Event) CloseIssue(ctx context.Context, labels []string) (*github.Issue, *github.Response, error)

func (*Event) EditIssue

func (ev *Event) EditIssue(
	ctx context.Context,
	req *github.IssueRequest) (*github.Issue, *github.Response, error)

EditIssue updates the event issue using the given request.

func (*Event) RemoveIssueLabels

func (ev *Event) RemoveIssueLabels(
	ctx context.Context, labels []string) (*github.Response, error)

RemoveIssueLabels removes the given label from the event issue. If the label is not found, no action is taken.

func (*Event) SetIssueLabels

func (ev *Event) SetIssueLabels(ctx context.Context, labels []string) (
	*github.Issue, *github.Response, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL