Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) CheckRuns(ctx context.Context, ref string) ([]*github.CheckRun, error)
- func (c *Client) CreateStatus(ctx context.Context, name, state, desc, url, ref string) error
- func (c *Client) FormatUser(ctx context.Context, login string) string
- func (c *Client) Issue(ctx context.Context, number int) (*Issue, error)
- func (c *Client) Milestones(ctx context.Context) (map[string]int, error)
- func (c *Client) NewStage(pr *github.PullRequest) *Stage
- func (c *Client) Owner() string
- func (c *Client) PR(ctx context.Context, number int) (*PR, error)
- func (c *Client) PullRequestBySHA(ctx context.Context, sha string) (*PR, error)
- func (c *Client) Repo() string
- func (c *Client) WrapIssue(issue *github.Issue) *Issue
- func (c *Client) WrapPR(pr *github.PullRequest) *PR
- type Issue
- type PR
- func (pr *PR) Blob(ctx context.Context, sha string) (string, error)
- func (pr *PR) CombinedStatus(ctx context.Context) (*github.CombinedStatus, error)
- func (pr *PR) Files(ctx context.Context) ([]PRFile, error)
- func (pr *PR) Issue(ctx context.Context) (*Issue, error)
- func (pr *PR) Merge(ctx context.Context, title, msg string) error
- func (pr *PR) Mergeable(ctx context.Context) (bool, error)
- func (pr *PR) Number() int
- func (pr *PR) Reviews(ctx context.Context) ([]*github.PullRequestReview, error)
- func (pr *PR) String() string
- type PRFile
- type Stage
Constants ¶
View Source
const ( DefaultOwner = "collectd" DefaultRepo = "collectd" StatusSuccess = "success" StatusFailure = "failure" StatusError = "error" StatusPending = "pending" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CreateStatus ¶
func (*Client) Milestones ¶
func (*Client) PullRequestBySHA ¶
type PR ¶
type PR struct { *github.PullRequest // contains filtered or unexported fields }
func (*PR) CombinedStatus ¶
CombinedStatus ...
func (*PR) Files ¶
Files returns the files that are added or modified by this PR. Files without SHA (deleted files) are not returned.
Click to show internal directories.
Click to hide internal directories.