Skip to content

Commit 4cffe57

Browse files
committed
ci: add claude auto review workflow
Signed-off-by: Zespre Schmidt <starbops@zespre.com>
1 parent 3a607ee commit 4cffe57

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Claude Auto Review
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
jobs:
8+
auto-review:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
pull-requests: read
13+
id-token: write
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 1
19+
20+
- name: Automatic PR Review
21+
uses: anthropics/claude-code-action@beta
22+
with:
23+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
24+
timeout_minutes: "60"
25+
direct_prompt: |
26+
Please review this pull request and provide comprehensive feedback.
27+
28+
Focus on:
29+
- Code quality and best practices
30+
- Potential bugs or issues
31+
- Performance considerations
32+
- Security implications
33+
- Test coverage
34+
- Documentation updates if needed
35+
36+
Provide constructive feedback with specific suggestions for improvement.
37+
Use inline comments to highlight specific areas of concern.
38+
# allowed_tools: "mcp__github__create_pending_pull_request_review,mcp__github__add_pull_request_review_comment_to_pending_review,mcp__github__submit_pending_pull_request_review,mcp__github__get_pull_request_diff"

0 commit comments

Comments
 (0)