Documentation ¶
Index ¶
- func NewGithubClient(token string) *github.Client
- type Owners
- type PRCallback
- type PullRequestQuery
- func (q *PullRequestQuery) GetIssueComments(pr *github.PullRequest) ([]*github.IssueComment, error)
- func (q *PullRequestQuery) GetPRComments(pr *github.PullRequest) ([]*github.PullRequestComment, error)
- func (q *PullRequestQuery) GetReviews(pr *github.PullRequest) ([]*github.PullRequestReview, error)
- func (q *PullRequestQuery) IsMerged(pr *github.PullRequest) (bool, error)
- func (q *PullRequestQuery) IteratePullRequests(callback PRCallback) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGithubClient ¶
Types ¶
type Owners ¶
type Owners struct { Approvers []string `yaml:"approvers"` // contains filtered or unexported fields }
func ReadOwners ¶
type PRCallback ¶
type PRCallback func(*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) GetIssueComments ¶
func (q *PullRequestQuery) GetIssueComments(pr *github.PullRequest) ([]*github.IssueComment, error)
func (*PullRequestQuery) GetPRComments ¶
func (q *PullRequestQuery) GetPRComments(pr *github.PullRequest) ([]*github.PullRequestComment, error)
func (*PullRequestQuery) GetReviews ¶
func (q *PullRequestQuery) GetReviews(pr *github.PullRequest) ([]*github.PullRequestReview, error)
func (*PullRequestQuery) IsMerged ¶
func (q *PullRequestQuery) IsMerged(pr *github.PullRequest) (bool, error)
func (*PullRequestQuery) IteratePullRequests ¶
func (q *PullRequestQuery) IteratePullRequests(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.