Documentation ¶
Index ¶
- func NewGithubClient(ctx context.Context, token string) *github.Client
- type PRCallback
- type PullRequestQuery
- func (q *PullRequestQuery) GetCommits(ctx context.Context, pr *github.PullRequest) ([]*github.RepositoryCommit, error)
- func (q *PullRequestQuery) GetIssueComments(ctx context.Context, pr *github.PullRequest) ([]*github.IssueComment, error)
- func (q *PullRequestQuery) GetPRComments(ctx context.Context, pr *github.PullRequest) ([]*github.PullRequestComment, error)
- func (q *PullRequestQuery) GetReviews(ctx context.Context, pr *github.PullRequest) ([]*github.PullRequestReview, error)
- func (q *PullRequestQuery) IsMerged(ctx context.Context, pr *github.PullRequest) (bool, error)
- func (q *PullRequestQuery) IteratePullRequests(ctx context.Context, callback PRCallback) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PRCallback ¶
type PRCallback func(context.Context, *github.PullRequest) error
PRCallback is a type for callbacks for processing pull requests
type PullRequestQuery ¶
PullRequestQuery holds the parameters for iterating over pull requests
func (*PullRequestQuery) GetCommits ¶ added in v0.6.0
func (q *PullRequestQuery) GetCommits(ctx context.Context, pr *github.PullRequest) ([]*github.RepositoryCommit, error)
func (*PullRequestQuery) GetIssueComments ¶
func (q *PullRequestQuery) GetIssueComments(ctx context.Context, pr *github.PullRequest) ([]*github.IssueComment, error)
func (*PullRequestQuery) GetPRComments ¶
func (q *PullRequestQuery) GetPRComments(ctx context.Context, pr *github.PullRequest) ([]*github.PullRequestComment, error)
func (*PullRequestQuery) GetReviews ¶
func (q *PullRequestQuery) GetReviews(ctx context.Context, pr *github.PullRequest) ([]*github.PullRequestReview, error)
func (*PullRequestQuery) IsMerged ¶
func (q *PullRequestQuery) IsMerged(ctx context.Context, pr *github.PullRequest) (bool, error)
func (*PullRequestQuery) IteratePullRequests ¶
func (q *PullRequestQuery) IteratePullRequests(ctx context.Context, callback PRCallback) error
IteratePullRequests queries for all pull requests and invokes the callback with each PR individually
Click to show internal directories.
Click to hide internal directories.