Documentation ¶
Index ¶
- type Client
- func (c *Client) AddComment(ctx context.Context, n int, comment string) error
- func (c *Client) CloseIssue(ctx context.Context, n int) error
- func (c *Client) FetchTarget(ctx context.Context, n int) (*target.Target, error)
- func (c *Client) FetchTargets(ctx context.Context) (target.Targets, error)
- func (c *Client) MergePullRequest(ctx context.Context, n int) error
- func (c *Client) ResolveUsers(ctx context.Context, in []string) ([]string, error)
- func (c *Client) SetAssignees(ctx context.Context, n int, assignees []string) error
- func (c *Client) SetLabels(ctx context.Context, n int, labels []string) error
- func (c *Client) SetReviewers(ctx context.Context, n int, reviewers []string) error
- type GhClient
- type GitHubEvent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddComment ¶
func (*Client) FetchTarget ¶
func (*Client) FetchTargets ¶
func (*Client) MergePullRequest ¶
func (*Client) ResolveUsers ¶ added in v0.1.1
func (*Client) SetAssignees ¶
type GhClient ¶ added in v0.5.0
type GhClient interface { FetchTargets(ctx context.Context) (target.Targets, error) FetchTarget(ctx context.Context, n int) (*target.Target, error) SetLabels(ctx context.Context, n int, labels []string) error SetAssignees(ctx context.Context, n int, assignees []string) error SetReviewers(ctx context.Context, n int, reviewers []string) error AddComment(ctx context.Context, n int, comment string) error CloseIssue(ctx context.Context, n int) error MergePullRequest(ctx context.Context, n int) error ResolveUsers(ctx context.Context, in []string) ([]string, error) }
type GitHubEvent ¶ added in v0.16.0
func DecodeGitHubEvent ¶ added in v0.16.0
func DecodeGitHubEvent() (*GitHubEvent, error)
Click to show internal directories.
Click to hide internal directories.