|
| 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