iface

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Issues

type Issues interface {
	Edit(ctx context.Context, owner string, repo string, number int, issue *github.IssueRequest) (*github.Issue, *github.Response, error)
	AddLabelsToIssue(ctx context.Context, owner string, repo string, number int, labels []string) ([]*github.Label, *github.Response, error)
	RemoveLabelForIssue(ctx context.Context, owner string, repo string, number int, label string) (*github.Response, error)
}

Issues defines the interface used by the issues event logic.

type IssuesImpl

type IssuesImpl struct {
	*github.IssuesService
}

IssuesImpl implements the Issues interface.

func NewIssues

func NewIssues(service *github.IssuesService) *IssuesImpl

NewIssues creates a new Issues instance.

func (*IssuesImpl) AddLabelsToIssue

func (i *IssuesImpl) AddLabelsToIssue(
	ctx context.Context, owner string, repo string, number int,
	labels []string) ([]*github.Label, *github.Response, error)

AddLabelsToIssue adds the given lables to the issue number in the owner repo.

func (*IssuesImpl) Edit

func (i *IssuesImpl) Edit(
	ctx context.Context, owner string, repo string, number int,
	issue *github.IssueRequest) (*github.Issue, *github.Response, error)

Edit an issue.

func (*IssuesImpl) RemoveLabelForIssue

func (i *IssuesImpl) RemoveLabelForIssue(
	ctx context.Context, owner string, repo string, number int,
	label string) (*github.Response, error)

RemoveLabelForIssue removes the given label from the repo issue.

Jump to

Keyboard shortcuts

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