Skip to content

Commit 9b7997b

Browse files
committed
add claude-authorized
1 parent 91664ec commit 9b7997b

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Claude PR Assistant - Authorized Users Only
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_review_comment:
7+
types: [created]
8+
issues:
9+
types: [opened, assigned]
10+
pull_request_review:
11+
types: [submitted]
12+
13+
jobs:
14+
claude-code-action:
15+
# Only respond to @claude mentions from grll
16+
if: |
17+
(
18+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
19+
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
20+
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
21+
(github.event_name == 'issues' && contains(github.event.issue.body, '@claude'))
22+
) && github.actor == 'grll'
23+
runs-on: ubuntu-latest
24+
permissions:
25+
contents: read
26+
pull-requests: read
27+
issues: read
28+
id-token: write
29+
steps:
30+
- name: Checkout repository
31+
uses: actions/checkout@v4
32+
with:
33+
fetch-depth: 1
34+
35+
- name: Run Claude PR Action
36+
uses: grll/claude-code-action@beta
37+
with:
38+
use_oauth: true
39+
claude_access_token: ${{ secrets.CLAUDE_ACCESS_TOKEN }}
40+
claude_refresh_token: ${{ secrets.CLAUDE_REFRESH_TOKEN }}
41+
claude_expires_at: ${{ secrets.CLAUDE_EXPIRES_AT }}
42+
timeout_minutes: "60"

0 commit comments

Comments
 (0)