feat(web): add merge PR action to git dropdown - #8
Merged
Conversation
Adds a "Merge PR" item to the git actions dropdown alongside Commit / Push / View PR, shown whenever there is an open pull request. Merging uses a merge commit and keeps the head branch. Wires the action through the existing source-control provider abstraction so it works across all providers: - GitHub: gh pr merge --merge - GitLab: glab mr merge --yes - Azure DevOps: az repos pr update --status completed --delete-source-branch false - Bitbucket: pull request merge API (merge_commit, close_source_branch false) Includes the new git.mergePullRequest RPC, GitManager/GitWorkflowService methods, WS handler, auth scope, client atom + hook, and UI wiring. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a "Merge PR" item to the git actions dropdown (alongside Commit / Push / View PR), shown whenever there is an open pull request. Merging uses a merge commit and keeps the head branch.
The action runs through the existing source-control provider abstraction, so it works across all four providers:
gh pr merge <ref> --mergeglab mr merge <ref> --yesaz repos pr update --id <id> --status completed --delete-source-branch falsePOST .../pullrequests/{id}/merge(merge_commit,close_source_branch: false)Changes by layer
GitMergePullRequestResult+git.mergePullRequestRPCmergeChangeRequest(plus CLI/API methods, registry wrappers)GitManager.mergePullRequest(fetch PR, merge, invalidate status caches),GitWorkflowServiceroute,ws.tshandler (refreshes status after merge), auth scopegitEnvironment.mergePullRequestatom,useGitMergePullRequestActionhook, menu item + icon + disabled reasons + toast flow inGitActionsControlVerification
🤖 Generated with Claude Code