Documentation
¶
Overview ¶
Package github provides GitHub API operations.
Index ¶
- func AddLabels(ctx context.Context, apiURL, token, owner, repo string, prNumber int, ...) error
- func EnableAutoMerge(ctx context.Context, graphqlURL, token, prNodeID, mergeMethod string) error
- func RequestReviewers(ctx context.Context, apiURL, token, owner, repo string, prNumber int, ...) error
- type PRData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLabels ¶
func AddLabels(ctx context.Context, apiURL, token, owner, repo string, prNumber int, labels []string) error
AddLabels adds labels to a pull request.
func EnableAutoMerge ¶
EnableAutoMerge enables auto-merge on a pull request via GraphQL.
Types ¶
type PRData ¶
PRData contains pull request information.
func CreatePullRequest ¶
func CreatePullRequest(ctx context.Context, apiURL, token, owner, repo, title, body, head, base string) (*PRData, error)
CreatePullRequest creates a new pull request.
func FindPullRequest ¶ added in v0.3.6
FindPullRequest finds an open pull request for the given head branch. Returns nil if no open PR exists.
Click to show internal directories.
Click to hide internal directories.