Skip to content

Commit 7418ad9

Browse files
ci: bootstrap claude code review workflow (#2)
## Summary - Adds the Claude Code Review workflow to `main` so it can validate and run on PRs The workflow validation requires the file to exist on the default branch with identical content. Since PR #1 introduces the workflow file for the first time, it can't validate against `main`. This small PR bootstraps it. ## Test plan - [ ] Merge this PR - [ ] Push a new commit to PR #1 — claude-review should post feedback 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 <[email protected]>
1 parent 5679bef commit 7418ad9

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Claude Code Review
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize]
6+
7+
jobs:
8+
claude-review:
9+
if: github.actor != 'dependabot[bot]'
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
pull-requests: read
14+
issues: read
15+
id-token: write
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
20+
with:
21+
fetch-depth: 1
22+
23+
- name: Run Claude Code Review
24+
uses: anthropics/claude-code-action@1fc90f3ed982521116d8ff6d85b948c9b12cae3e # v1
25+
with:
26+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
27+
prompt: |
28+
REPO: ${{ github.repository }}
29+
PR NUMBER: ${{ github.event.pull_request.number }}
30+
31+
Please review this pull request and provide feedback on:
32+
- Code quality and best practices
33+
- Potential bugs or issues
34+
- Performance considerations
35+
- Security concerns
36+
- Test coverage
37+
38+
Use the repository's CLAUDE.md for guidance on style and conventions. Be constructive and helpful in your feedback.
39+
40+
Use `gh pr comment` with your Bash tool to leave your review as a comment on the PR.
41+
42+
claude_args: '--model claude-opus-4-6 --allowed-tools "Bash(gh issue view:*),Bash(gh search:*),Bash(gh issue list:*),Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh pr list:*)"'

0 commit comments

Comments
 (0)