feat(forge): MergePR on the SDK, GitHub and Gitea forges

This commit is contained in:
sam committed 2026-10-05 21:36:07 +11:00
1 parent ca1bd1de11
commit ee9271e7cf
6 files changed
+390 -231

No files matched your search

+6
View File
@@ -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