Documentation ¶
Index ¶
- type Issues
- type IssuesImpl
- func (i *IssuesImpl) AddLabelsToIssue(ctx context.Context, owner string, repo string, number int, labels []string) ([]*github.Label, *github.Response, error)
- func (i *IssuesImpl) Edit(ctx context.Context, owner string, repo string, number int, ...) (*github.Issue, *github.Response, error)
- func (i *IssuesImpl) RemoveLabelForIssue(ctx context.Context, owner string, repo string, number int, label string) (*github.Response, error)
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.
Click to show internal directories.
Click to hide internal directories.