README.md: - GitHub-friendly documentation - Installation instructions - Plugin overview with commands review plugin: - /review:security - Security-focused review - /review:pr - PR review - hooks.json - Post PR create suggestion - scripts/post-pr-create.sh verify plugin: - /verify:ready - Quick readiness check - /verify:tests - Test verification - hooks.json - Pre-push warning - scripts/pre-push-check.sh qa plugin: - /qa:check - Report only, no fixes - /qa:lint - Lint with fix option - hooks.json - QA output filtering ci plugin: - /ci:status - CI status display - /ci:run - Trigger workflows - /ci:fix - Analyse and fix failures - hooks.json - Post-push CI hint - scripts/post-push-ci.sh Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
87 lines
1.3 KiB
Markdown
87 lines
1.3 KiB
Markdown
---
|
|
name: pr
|
|
description: Review a pull request
|
|
args: <pr-number>
|
|
---
|
|
|
|
# PR Review
|
|
|
|
Review a GitHub pull request.
|
|
|
|
## Usage
|
|
|
|
```
|
|
/review:pr 123
|
|
/review:pr 123 --security
|
|
/review:pr 123 --quick
|
|
```
|
|
|
|
## Process
|
|
|
|
1. **Fetch PR details**
|
|
```bash
|
|
gh pr view 123 --json title,body,author,files,additions,deletions
|
|
```
|
|
|
|
2. **Get PR diff**
|
|
```bash
|
|
gh pr diff 123
|
|
```
|
|
|
|
3. **Check CI status**
|
|
```bash
|
|
gh pr checks 123
|
|
```
|
|
|
|
4. **Review changes**
|
|
- Correctness
|
|
- Security (if --security)
|
|
- Tests coverage
|
|
- Documentation
|
|
|
|
5. **Provide feedback**
|
|
|
|
## Output Format
|
|
|
|
```markdown
|
|
## PR Review: #123 - Add user authentication
|
|
|
|
**Author**: @username
|
|
**Files**: 5 changed (+120, -30)
|
|
**CI**: ✓ All checks passing
|
|
|
|
### Summary
|
|
Brief description of what this PR does.
|
|
|
|
### Review
|
|
|
|
#### Approved ✓
|
|
- Clean implementation
|
|
- Good test coverage
|
|
- Documentation updated
|
|
|
|
#### Changes Requested ✗
|
|
- **src/auth.go:42** - Missing input validation
|
|
- **src/auth.go:87** - Error not handled
|
|
|
|
#### Comments
|
|
- Consider adding rate limiting
|
|
- Nice use of middleware pattern
|
|
|
|
---
|
|
**Recommendation**: Approve with minor changes
|
|
```
|
|
|
|
## Actions
|
|
|
|
After review, you can:
|
|
```bash
|
|
# Approve
|
|
gh pr review 123 --approve
|
|
|
|
# Request changes
|
|
gh pr review 123 --request-changes --body "See comments"
|
|
|
|
# Comment only
|
|
gh pr review 123 --comment --body "Looks good overall"
|
|
```
|