Skip to content

Commit 4f3ee44

Browse files
authored
fix: let claude code review automatically (#61)
1 parent 90a600e commit 4f3ee44

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/claude.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ on:
99
types: [opened, synchronize]
1010

1111
jobs:
12-
# Auto-review on PR open/sync
13-
auto-review:
12+
review:
1413
if: github.event_name == 'pull_request'
1514
runs-on: ubuntu-latest
1615
permissions:
@@ -26,17 +25,10 @@ jobs:
2625
uses: anthropics/claude-code-action@ac1a3207f3f00b4a37e2f3a6f0935733c7c64651 # v1.0
2726
with:
2827
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
29-
prompt: |
30-
Review this PR following the guidelines in CLAUDE.md.
31-
Focus on:
32-
- Code quality and maintainability
33-
- Security issues
34-
- TypeScript strict mode compliance (NO `any` types)
35-
- Next.js App Router best practices
36-
- Server vs Client Component usage
37-
- hey-api integration patterns
38-
Be concise and actionable - highlight critical issues first.
39-
claude_args: "--max-turns 15"
28+
prompt: "/review"
29+
claude_args: |
30+
--system-prompt "Follow the guidelines in CLAUDE.md. Focus on code quality, security, TypeScript strict mode (NO any types), Next.js App Router best practices, and hey-api integration patterns."
31+
--max-turns 15
4032
4133
# Respond to @claude mentions
4234
interactive:
@@ -57,4 +49,6 @@ jobs:
5749
uses: anthropics/claude-code-action@ac1a3207f3f00b4a37e2f3a6f0935733c7c64651 # v1.0
5850
with:
5951
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
60-
claude_args: "--max-turns 15"
52+
claude_args: |
53+
--system-prompt "Follow the guidelines in CLAUDE.md. Focus on code quality, security, TypeScript strict mode (NO any types), Next.js App Router best practices, and hey-api integration patterns."
54+
--max-turns 15

0 commit comments

Comments
 (0)