Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePullRequest ¶
func CreatePullRequest(ctx context.Context, repo *git.Repo, client *gh.Client, opts CreatePullRequestOpts) (*gh.PullRequest, error)
CreatePullRequest creates a pull request on GitHub for the current branch, if one doesn't already exist.
Types ¶
type CreatePullRequestOpts ¶
type ForceOpt ¶
type ForceOpt int
const ( NoForce ForceOpt = iota // ForceWithLease indicates that the push should use the --force-with-lease // option which instructs Git that it should only force push to the remote // branch if its current HEAD matches what we think it should be. ForceWithLease ForceOpt = iota ForcePush ForceOpt = iota )
type ReparentResult ¶ added in v0.0.4
func Reparent ¶ added in v0.0.4
Reparent changes the parent branch of a stacked branch (performing a rebase if necessary).
func ReparentContinue ¶ added in v0.0.4
type UpdatePullRequestResult ¶ added in v0.0.4
type UpdatePullRequestResult struct { // True if the pull request information changed (e.g., a new pull request // was found or if the pull request changed state) Changed bool // The (updated) branch metadata. Branch meta.Branch // The pull request object that was returned from GitHub Pull *gh.PullRequest }
func UpdatePullRequestState ¶ added in v0.0.4
func UpdatePullRequestState(ctx context.Context, repo *git.Repo, client *gh.Client, repoMeta meta.Repository, branchName string) (*UpdatePullRequestResult, error)
UpdatePullRequestState fetches the latest pull request information from GitHub and writes the relevant branch metadata.
Click to show internal directories.
Click to hide internal directories.