merge - Merge pull requests with rebase strategy via gh CLI
Merges the pull request for the current branch or a specified PR using GitHub's rebase strategy via the gh CLI.
Tags
Updated: 2026-09-12Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Identify target pull request
- Inspect pull request status
- Summarize status and CI checks
- Prompt user for merge confirmation
- Merge pull request using rebase
- Delete branch after successful merge
- Enable auto-merge for pending checks
- Report outcome or verbatim errors
Inputs
- Pull request identifier or branch
- User merge confirmation
Outputs
- Pull request status summary
- Merged pull request state
- Deleted source branch state
- Auto-merge queue state
- CLI error log output
Requirements
- GitHub CLI tool
- GitHub repository write access permissions
