| name | gh-pr-review |
| description | Submit pull request reviews (approve, comment, or request changes) using gh CLI. |
| allowed-tools | Bash, Read, Grep |
| handoffs | [{"label":"View PR","agent":"gh-pr-view","prompt":"View this PR before reviewing","send":true}] |
GitHub PR Review
When to use
- The user asks to approve, comment on, or request changes for a PR.
Inputs to confirm
- PR number/URL/branch (or use current branch PR).
- Review type: approve, comment, or request changes.
- Review body text (or file).
Workflow
- Verify auth:
gh --version
gh auth status
- Submit review:
gh pr review 123 --approve --body "LGTM"
gh pr review 123 --comment --body "Looks good, minor nits below"
gh pr review 123 --request-changes --body "Please add tests"
- Confirm status:
gh pr view 123 --json reviewDecision
Examples
~ gh pr review --approve --body "LGTM"
Notes
- You cannot approve your own PR.
- Use
--body-file to provide longer feedback.
References