merge-pr
Merge PR
Merge the requested PRs immediately when possible, or enable auto-merge, and verify each result.
Authorization
An explicit user invocation of $merge-pr is a merge request and authorizes merging the targets identified by the user's request or conversation context. This authorization includes enabling auto-merge for those targets when immediate merging is unavailable. The authorized targets include PRs returned by a selection workflow requested in the same message. Do not request confirmation again because the targets came from tool results rather than manually supplied PR numbers.
Automatic skill selection alone does not authorize merging or enabling auto-merge. A request to edit, inspect, or discuss this skill authorizes that work only. A handoff must retain the original human merge authorization and target scope.
Core Rules
- Always use
gh pr mergewith--squash. Do not substitute merge commits or rebase merges. - Never specify
--subjector its short form-t, including an empty value. Leave the commit subject to the defaultghand GitHub behavior. Do not override it interactively or through another merge interface.
See the GitHub CLI merge documentation for these options.