Skip to content

Commit 0d7b29b

Browse files
committed
ci: add claude code reviewer
1 parent fc58ed1 commit 0d7b29b

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Claude Code PR Review
2+
3+
on:
4+
pull_request:
5+
branches: [ main ]
6+
types: [opened, synchronize, reopened]
7+
8+
jobs:
9+
claude-code-review:
10+
if: |
11+
github.event.pull_request.draft == false
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
pull-requests: write
16+
id-token: write
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Claude Code Review
20+
uses: anthropics/claude-code-action@v1
21+
with:
22+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
23+
prompt: |
24+
Please review this TypeScript OAuth2 server pull request with focus on:
25+
26+
1. **Breaking Changes**:
27+
- Check for any changes to public APIs, interfaces, or exported functions
28+
- Verify that existing method signatures haven't changed
29+
- Look for removals of public methods or properties
30+
- Check if any changes affect backward compatibility
31+
32+
2. **Test Coverage**:
33+
- Ensure new code has corresponding test files using Vitest
34+
- Verify test files follow the existing pattern (*.spec.ts)
35+
- Check that new features have adequate test coverage
36+
- Ensure edge cases and error scenarios are tested
37+
38+
3. **Documentation Updates**:
39+
- Check if changes to public APIs are documented in /docs
40+
- Verify that new features have documentation
41+
- Ensure README.md is updated if new functionality is added
42+
- Check that JSDoc comments are present for public methods
43+
44+
4. **Code Quality**:
45+
- Ensure TypeScript strict mode compliance
46+
- Check for proper error handling using OAuthException
47+
- Verify imports use .js extensions as per project standards
48+
- Confirm snake_case file naming convention is followed
49+
50+
Please provide specific feedback on any issues found and suggest improvements.

0 commit comments

Comments
 (0)