-
Notifications
You must be signed in to change notification settings - Fork 309
25 lines (24 loc) · 918 Bytes
/
claude-review.yml
File metadata and controls
25 lines (24 loc) · 918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: Claude PR Review
on:
pull_request_review_comment:
types: [created]
issue_comment:
types: [created]
pull_request:
types: [opened, synchronize]
jobs:
claude-review:
if: |
(github.event_name == 'pull_request' && contains(github.event.pull_request.body, '@claude')) ||
(github.event_name == 'issue_comment' && github.event.issue.pull_request && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude'))
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: anthropics/claude-code-action@v1
with:
# For Max subscription, use OAuth token instead of API key
oauth_token: ${{ secrets.CLAUDE_OAUTH_TOKEN }}
# anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} # Only for API users