gnodet

Merge PR — Git skill for Claude Code

Git community

Merge a PR after verifying all requirements are met.

How to install Merge PR

Installs to ~/.claude/skills/gnodet-claude-code-commands-merge-pr/SKILL.md

Terminal
mkdir -p ~/.claude/skills/gnodet-claude-code-commands-merge-pr && curl -fsSL https://raw.githubusercontent.com/gnodet/claude-code-commands/HEAD/commands/merge-pr.md -o ~/.claude/skills/gnodet-claude-code-commands-merge-pr/SKILL.md

Restart Claude Code, or start a new session, for it to be picked up.

What Merge PR does

Merge a PR after verifying all requirements are met.

If a PR number is provided ("$ARGUMENTS"), use that. Otherwise, detect the PR associated with the current branch by running `gh pr view --json number,url --jq '.number'`. If no PR is found, abort with a clear message.

Phase 1: Pre-merge Checks

Run ALL of the following checks. If ANY check fails, abort immediately and report which checks failed.

1.1 CI Status

  • Run gh pr checks and verify ALL checks have passed (no failure

Alternatives in Git

Full documentation available on GitHub

View Source Repository