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
# Approve current branch PR
~ gh pr review --approve --body "LGTM"
Notes
- You cannot approve your own PR.
- Use
--body-fileto provide longer feedback.
References
- GitHub CLI manual: https://cli.github.com/manual/
gh pr review --help