Skip to content

Commit ef02af4

Browse files
committed
Add Claude PR Assistant workflow
1 parent 828c541 commit ef02af4

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/claude.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Claude Code
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_review_comment:
7+
types: [created]
8+
issues:
9+
types: [opened, assigned]
10+
11+
jobs:
12+
claude:
13+
if: |
14+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
15+
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
16+
(github.event_name == 'issues' && contains(github.event.issue.body, '@claude'))
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
20+
id-token: write
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
with:
25+
fetch-depth: 1
26+
27+
- name: Run Claude Code
28+
uses: anthropics/claude-action@v1
29+
with:
30+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}

0 commit comments

Comments
 (0)