feat: add MergePull() method to Gitea client (#187) #210
Reference in New Issue
Block a user
Delete Branch "feat/merge-pull-client-187"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
MergePull()method to Gitea client supporting merge, rebase, rebase-merge, and squash stylesThis is a prerequisite for #188 and #177 (merge PR button feature).
Test plan
go test ./internal/gitea/...Closes #187
Add MergePull() that calls POST /repos/{owner}/{repo}/pulls/{index}/merge with the specified merge style (merge, rebase, rebase-merge, squash). Defaults to "merge" if no style specified. Includes unit tests for success, default style, and error cases. This is a prerequisite for #177 (merge PR button in UI) and #206 (POST /pulls merge handler). Closes leeworks-agents/gitea-mobile#187 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>3d1775a37btod350500486