Skip to content

Commit 83834f1

Browse files
committed
Code review with Claude
1 parent e85091f commit 83834f1

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/pr-review.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Claude Review
2+
3+
on:
4+
pull_request:
5+
types: [opened, ready_for_review, reopened]
6+
7+
jobs:
8+
review:
9+
name: Review PR
10+
if: |
11+
github.event.pull_request.draft == false &&
12+
github.event.pull_request.head.repo.full_name == github.repository
13+
runs-on: ubuntu-latest
14+
concurrency:
15+
group: claude-review-${{ github.event.pull_request.number }}
16+
cancel-in-progress: true
17+
permissions:
18+
contents: read
19+
pull-requests: write
20+
issues: write
21+
id-token: write
22+
steps:
23+
- uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 1
26+
27+
- name: Review PR
28+
uses: anthropics/claude-code-action@v1
29+
with:
30+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
31+
track_progress: true
32+
prompt: '/github-review ${{ github.event.pull_request.number }} ${{ github.repository }}'
33+
claude_args: >-
34+
--allowedTools "Skill(github-review),Bash(gh pr diff:*),Bash(gh pr view:*),Bash(gh api:*),Bash(curl:*),Bash(find:*),Bash(grep:*),Bash(jq:*),Read,Glob,Grep"
35+
show_full_output: true

0 commit comments

Comments
 (0)