feat(forge): MergePR on the SDK, GitHub and Gitea forges
This commit is contained in:
6 files changed
+390
-231
No files matched your search
@@ -363,6 +363,12 @@ func (c *GitHubClient) ClosePR(ctx context.Context, owner, repo string, number i
|
||||
return err
|
||||
}
|
||||
|
||||
// MergePR merges a pull request with the repository's default method.
|
||||
func (c *GitHubClient) MergePR(ctx context.Context, owner, repo string, number int) error {
|
||||
_, _, err := c.gh.PullRequests.Merge(ctx, owner, repo, number, "", nil)
|
||||
return err
|
||||
}
|
||||
|
||||
// LinkBranch associates a branch with an issue (GitHub stub -- Gitea is primary).
|
||||
func (c *GitHubClient) LinkBranch(ctx context.Context, owner, repo string, issueNumber int, branch string) error {
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user