Skip to content

Commit 1907718

Browse files
authored
Merge pull request #25 from autonomys/todd-subspace-patch-1
Add Claude code review workflow
2 parents 0a9d448 + 259f96a commit 1907718

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Claude Code Review
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_review_comment:
7+
types: [created]
8+
9+
jobs:
10+
claude-review:
11+
runs-on: ubuntu-latest
12+
if: |
13+
(github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(github.event.comment.body, '@claude')) ||
14+
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude'))
15+
permissions:
16+
contents: read
17+
pull-requests: write
18+
issues: write
19+
id-token: write
20+
steps:
21+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
22+
with:
23+
fetch-depth: 1
24+
- uses: anthropics/claude-code-action@df37d2f0760a4b5683a6e617c9325bc1a36443f6 # v1.0.75
25+
with:
26+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
27+
claude_args: |
28+
--allowedTools "mcp__github_inline_comment__create_inline_comment,Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*)"

0 commit comments

Comments
 (0)