Skip to content

feat(git): add remote PR-merge helper and wire it into the git menus#28

Merged
MCamner merged 1 commit into
mainfrom
feat/gitpr-merge-safe
Jul 2, 2026
Merged

feat(git): add remote PR-merge helper and wire it into the git menus#28
MCamner merged 1 commit into
mainfrom
feat/gitpr-merge-safe

Conversation

@MCamner

@MCamner MCamner commented Jul 2, 2026

Copy link
Copy Markdown
Owner

gitmerge-safe.sh only does local merges and never pushes, so closing a GitHub
pull request still fell back to raw gh commands. Add gitpr-merge-safe.sh as its
remote counterpart: it resolves the target PR (arg, current branch, or picker),
shows a merge plan with checks/mergeable/review state, soft-blocks on unclean
PRs, merges via gh pr merge (squash + --delete-branch by default), then syncs
the local base branch. Same guardrail style as gitmerge-safe.sh (TTY-gated,
plan then confirm).

Wire it in as 'p. PR merge' in gitlaunch (alongside 'm. Safe merge') and
'p. Merge pull request' in the MQ Git menu, both delegating to the shared
helper.

Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com

gitmerge-safe.sh only does local merges and never pushes, so closing a GitHub
pull request still fell back to raw gh commands. Add gitpr-merge-safe.sh as its
remote counterpart: it resolves the target PR (arg, current branch, or picker),
shows a merge plan with checks/mergeable/review state, soft-blocks on unclean
PRs, merges via gh pr merge (squash + --delete-branch by default), then syncs
the local base branch. Same guardrail style as gitmerge-safe.sh (TTY-gated,
plan then confirm).

Wire it in as 'p. PR merge' in gitlaunch (alongside 'm. Safe merge') and
'p. Merge pull request' in the MQ Git menu, both delegating to the shared
helper.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@MCamner MCamner merged commit 8618b17 into main Jul 2, 2026
2 checks passed
@MCamner MCamner deleted the feat/gitpr-merge-safe branch July 2, 2026 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant