Gh pr merge
Merge GitHub pull requests using gh CLI with merge, squash, or rebase strategies and optional auto-merge.From its SKILL.md
npx -y skills add dceoy/github-cli-agent-skills --skill gh-pr-mergeAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.2 KB, 272 tokens by cl100k_base, as published. Nobody here has run it
GitHub PR Merge
When to use
- The user asks to merge an approved PR.
- You need to enable auto-merge.
Inputs to confirm
- PR number/URL/branch (or use current branch PR).
- Merge strategy:
--merge,--squash, or--rebase. - Whether to delete the branch, use auto-merge, or use admin override.
Workflow
- Verify auth and PR status:
gh --version gh auth status gh pr view 123 - Merge:
gh pr merge 123 --squash gh pr merge 123 --merge --delete-branch - Enable auto-merge if required checks are pending:
gh pr merge 123 --auto --squash
Examples
# Squash merge and delete branch
~ gh pr merge 123 --squash --delete-branch
Notes
- If a merge queue is required,
gh pr mergewill use it automatically. - Use
--adminonly when you have permission to bypass requirements.
References
- GitHub CLI manual: https://cli.github.com/manual/
gh pr merge --help
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.