Skip to content

Commit 9a1f88b

Browse files
authored
Merge pull request #131 from ethpandaops/chore/add-ci-workflow
ci(github): add cc workflow
2 parents 80e8086 + cff7a7e commit 9a1f88b

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed

.github/workflows/claude.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Claude PR Assistant
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+
if: |
16+
(
17+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
18+
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
19+
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
20+
(github.event_name == 'issues' && contains(github.event.issue.body, '@claude'))
21+
) && (
22+
github.event.comment.author_association == 'OWNER' ||
23+
github.event.comment.author_association == 'MEMBER' ||
24+
github.event.comment.author_association == 'COLLABORATOR' ||
25+
github.event.issue.author_association == 'OWNER' ||
26+
github.event.issue.author_association == 'MEMBER' ||
27+
github.event.issue.author_association == 'COLLABORATOR' ||
28+
github.event.review.author_association == 'OWNER' ||
29+
github.event.review.author_association == 'MEMBER' ||
30+
github.event.review.author_association == 'COLLABORATOR'
31+
)
32+
runs-on:
33+
- self-hosted-ghr
34+
- size-m-x64
35+
permissions:
36+
contents: write
37+
pull-requests: write
38+
issues: write
39+
actions: read
40+
checks: read
41+
repository-projects: read
42+
statuses: read
43+
id-token: write
44+
steps:
45+
- name: Run Claude PR Assistant
46+
uses: ethpandaops/.github/actions/claude-pr-assistant@master
47+
with:
48+
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
49+
# Optional overrides:
50+
# timeout_minutes: "90"
51+
# node_version: "22"
52+
# custom_instructions: |
53+
# Additional custom instructions for this repository
54+
# allowed_tools: |
55+
# Custom tool allowlist for this repository

0 commit comments

Comments
 (0)