Skip to content

Commit 3d832ad

Browse files
authored
chore: Update claude gh action to encourage shorter reviews (#1275)
1 parent 2d27fe2 commit 3d832ad

File tree

1 file changed

+20
-8
lines changed

1 file changed

+20
-8
lines changed

.github/workflows/claude-code-review.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,28 @@ jobs:
4040
REPO: ${{ github.repository }}
4141
PR NUMBER: ${{ github.event.pull_request.number }}
4242
43-
Please review this pull request and provide feedback on:
44-
- Code quality and best practices
45-
- Potential bugs or issues
46-
- Performance considerations
47-
- Security concerns
48-
- Test coverage
43+
Please review this pull request. Use the repository's CLAUDE.md for guidance on style and conventions.
4944
50-
Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback.
45+
**IMPORTANT: Keep your review SHORT and ACTIONABLE.**
5146
52-
If you find any issues, use `gh pr comment --edit-last --create-if-none` with your Bash tool to leave your review as a comment on the PR.
47+
Format your review as a concise bulleted list focusing ONLY on:
48+
- Critical bugs or security issues (if any)
49+
- Important code quality issues or violations of project patterns
50+
- Must-fix items before merge
51+
52+
Skip minor style nitpicks, explanations of obvious issues, and lengthy justifications unless critical.
53+
Each item should be: **Issue** → **Fix** (one line each when possible).
54+
55+
Example format:
56+
- ❌ Unvalidated user input in API endpoint → Add input validation
57+
- ⚠️ Missing error handling in async function → Wrap in try-catch
58+
- 🔒 Hardcoded credentials in config.ts → Move to environment variables
59+
60+
If there are NO critical issues, simply say "✅ No critical issues found."
61+
62+
Note: If the team wants a more thorough review, they can comment on the PR requesting one.
63+
64+
Use `gh pr comment --edit-last --create-if-none` with your Bash tool to leave your review as a comment on the PR.
5365
This will create a new comment if none exists, or edit the last comment if one exists.
5466
5567
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md

0 commit comments

Comments
 (0)