|
1 | | -name: mention |
| 1 | +name: comment |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | issue_comment: |
|
13 | 13 | jobs: |
14 | 14 | comment: |
15 | 15 | if: | |
16 | | - (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude') && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)) || |
| 16 | + (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude ') && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)) || |
17 | 17 | (github.event_name == 'issues' && ( |
18 | | - (contains(github.event.issue.body, '@claude') && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.issue.author_association)) || |
| 18 | + (contains(github.event.issue.body, '@claude ') && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.issue.author_association)) || |
19 | 19 | (github.event.action == 'assigned' && github.event.assignee.login == 'claude[bot]') |
20 | 20 | )) || |
21 | | - (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude') && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)) || |
22 | | - (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude') && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.review.author_association)) |
| 21 | + (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude ') && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.comment.author_association)) || |
| 22 | + (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude ') && contains(fromJSON('["OWNER", "MEMBER", "COLLABORATOR"]'), github.event.review.author_association)) |
23 | 23 | runs-on: ubuntu-latest |
24 | 24 | permissions: |
25 | 25 | contents: write |
|
32 | 32 | with: |
33 | 33 | fetch-depth: 1 |
34 | 34 |
|
35 | | - - name: React on Mention |
| 35 | + - name: React on Comment |
36 | 36 | uses: anthropics/claude-code-action@57ab6717ca1d3d137264d60c630870bd3b903729 # v1.0.92 |
37 | 37 | with: |
38 | 38 | claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} |
|
0 commit comments