Review Merge Pr banner
kpassoubady kpassoubady

Review Merge Pr

Git community

Description

Review and merge an open PR against the main branch. ## Steps ### 1. Ensure main is current ```bash git checkout main git pull origin main ``` ### 2. Find the open PR ```bash gh pr list --state open --limit 10 ``` If zero PRs are open, stop and tell the user. If multiple, ask which one. ### 3. Checkout and read the PR ```bash gh pr checkout <PR_NUMBER> gh pr view <PR_NUMBER> ``` Summarize the PR title, description, and checklist items. ### 4. Review the diff ```bash gh pr diff <PR_NUMBER> -

Installation

Installs to ~/.claude/commands/kpassoubady-agent-hub-review-merge-pr.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/kpassoubady/agent-hub/HEAD/.claude/commands/review-merge-pr.md -o ~/.claude/commands/kpassoubady-agent-hub-review-merge-pr.md

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

Full documentation available on GitHub

View Source Repository