Skip to content

Commit b6af998

Browse files
authored
Added config for claude code review (#713)
* added config for claude code review * Update claude-code-review.yml --------- Co-authored-by: cameronvoell <[email protected]>
1 parent bd2d2fe commit b6af998

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Claude Code Review
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
# Optional: Only run on specific file changes
7+
# paths:
8+
# - "src/**/*.ts"
9+
# - "src/**/*.tsx"
10+
# - "src/**/*.js"
11+
# - "src/**/*.jsx"
12+
13+
jobs:
14+
claude-review:
15+
# Optional: Filter by PR author
16+
# if: |
17+
# github.event.pull_request.user.login == 'external-contributor' ||
18+
# github.event.pull_request.user.login == 'new-developer' ||
19+
# github.event.pull_request.author_association == 'FIRST_TIME_CONTRIBUTOR'
20+
21+
runs-on: ubuntu-latest
22+
permissions:
23+
contents: read
24+
pull-requests: write
25+
issues: write
26+
id-token: write
27+
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@v4
31+
with:
32+
fetch-depth: 1
33+
34+
- name: Run Claude Code Review
35+
id: claude-review
36+
continue-on-error: true
37+
uses: anthropics/claude-code-action@beta
38+
with:
39+
claude_code_oauth_token: ${{ secrets.ANTHROPIC_API_KEY }}
40+
41+
model: "claude-opus-4-1-20250805"
42+
43+
# Direct prompt for automated review (no @claude mention needed)
44+
direct_prompt: |
45+
Please review this pull request and provide feedback on:
46+
- Code quality and best practices
47+
- Potential bugs or issues
48+
- Performance considerations
49+
- Security concerns
50+
- Test coverage
51+
Be constructive and helpful in your feedback.

CLAUDE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ The example app includes comprehensive tests in `example/src/tests/` covering:
7171
- Automated documentation updates trigger on GitHub releases
7272
- Requires `DOCS_SYNC_TOKEN` and `ANTHROPIC_API_KEY` secrets for doc automation
7373

74+
### Code Review
75+
- Pull requests are automatically reviewed by Claude AI via GitHub Actions
76+
- Reviews focus on code quality, security, performance, and adherence to project standards
77+
- Requires `CLAUDE_CODE_OAUTH_TOKEN` secret to be configured in repository settings
78+
7479
### Important Files
7580
- `expo-module.config.json`: Expo module configuration
7681
- `package.json`: Main package configuration with peer dependencies on Expo, React, React Native

0 commit comments

Comments
 (0)