Files
architecture/commands/review-pr.md
2025-12-30 23:52:28 +01:00

21 lines
653 B
Markdown

---
description: Review a Forgejo pull request. Fetches PR details, diff, and comments.
argument-hint: <pr-number>
---
# Review PR #$1
1. **View PR details**: `fj pr view $1`
2. **Get the diff**: `fj pr view $1 diff`
Review the changes and provide feedback on:
- Code quality
- Potential bugs
- Test coverage
- Documentation
Ask the user what action to take:
- **Merge**: Post review summary as comment, then `fj pr merge $1 -M rebase -d` (rebase + fast-forward, deletes branch)
- **Request changes**: `fj pr comment $1 "<feedback>"` - Leave feedback without merging
- **Comment only**: `fj pr comment $1 "<comment>"` - Add a comment for discussion