|
| 1 | +# Review Pending PRs |
| 2 | + |
| 3 | +Review pending PRs against [CONTRIBUTING.md](../../CONTRIBUTING.md) acceptance criteria. |
| 4 | + |
| 5 | +## Usage |
| 6 | + |
| 7 | +``` |
| 8 | +/review-pending-prs |
| 9 | +``` |
| 10 | + |
| 11 | +## Instructions |
| 12 | + |
| 13 | +1. Fetch open PRs (skip reviewed): `gh pr list --repo vinta/awesome-python --limit 20 --json number,title,author,url,labels --jq '[.[] | select(.labels | map(.name) | index("claude reviewed") | not)] | .[:10]'` |
| 14 | +2. For each PR: |
| 15 | + - Fetch PR details: `gh pr view <number> --repo vinta/awesome-python --json title,body,author,files,url,mergeable,mergeStateStatus` |
| 16 | + - Fetch PR diff: `gh pr diff <number> --repo vinta/awesome-python` |
| 17 | + - For each project added, fetch repo stats: `gh api repos/<owner>/<repo> --jq '{stars: .stargazers_count, created: .created_at, updated: .pushed_at, language: .language, archived: .archived}'` |
| 18 | +3. Review against all criteria in [CONTRIBUTING.md](../../CONTRIBUTING.md) |
| 19 | +4. Present summary table of 10 PRs with recommendations |
| 20 | +5. Ask user: |
| 21 | + |
| 22 | +``` |
| 23 | +Would you like me to: |
| 24 | +
|
| 25 | +1. Close the rejected PRs with comments? |
| 26 | +2. Add "claude reviewed" label to the approved PRs? |
| 27 | +3. Add comments to PRs need to be fixed? |
| 28 | +``` |
| 29 | + |
| 30 | +## Quick Rejection Checks |
| 31 | + |
| 32 | +Check these rules first - if any fail, recommend rejection: |
| 33 | + |
| 34 | +- Add more than one project per PR |
| 35 | +- Duplicate of existing entry |
| 36 | +- Placed under an inappropriate category |
| 37 | +- Project is archived or abandoned (no commits in 12+ months) |
| 38 | +- No documentation or unclear use case |
| 39 | +- Less than 100 GitHub stars AND not justified as a hidden gem |
| 40 | +- PR has merge conflicts (notify author to resolve) |
| 41 | + |
| 42 | +## Output Format |
| 43 | + |
| 44 | +Provide a simple review: |
| 45 | + |
| 46 | +1. **Rejection Check** - table with the 3 rules and PASS/FAIL |
| 47 | +2. **Recommendation** - APPROVE for further review, or REJECT with reason |
| 48 | + |
| 49 | +## Closing PRs |
| 50 | + |
| 51 | +If user asks to close/reject: |
| 52 | + |
| 53 | +```bash |
| 54 | +gh pr close <number> --repo vinta/awesome-python --comment "<brief reason>" |
| 55 | +``` |
| 56 | + |
| 57 | +## Mark as Reviewed |
| 58 | + |
| 59 | +```bash |
| 60 | +gh pr edit <number> --repo vinta/awesome-python --add-label "claude reviewed" |
| 61 | +``` |
| 62 | + |
| 63 | +## Extra Instructions (If Provided) |
| 64 | + |
| 65 | +$ARGUMENTS |
0 commit comments