Skip to content

Commit 318487d

Browse files
gf712claude
andcommitted
ci: fix @claude mention workflow never triggering
The Claude Code workflow has never executed: every run in its history was skipped by the job gate, including a reply that met every stated condition (gf712 actor, review-comment event, @claude in the body). The only difference from the official claude-code-action template is the hand-added github.actor wrapper around the condition, so drop it and use the template condition verbatim; the action's built-in check already restricts triggers to users with write access. Also subscribe to the issue_comment and issues events that the condition always handled but the trigger list never delivered, so @claude works from the PR conversation tab and issues too. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017NJ25FGK2EUWCLz2PaUwbT
1 parent 23886c0 commit 318487d

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/claude.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
name: Claude Code
22

33
on:
4+
issue_comment:
5+
types: [created]
46
pull_request_review_comment:
57
types: [created]
8+
issues:
9+
types: [opened]
610
pull_request_review:
711
types: [submitted]
812

913
jobs:
1014
claude:
15+
# No actor gate needed: claude-code-action only responds to users with
16+
# write access to the repository.
1117
if: |
12-
github.actor == 'gf712' && (
13-
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
14-
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
15-
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
16-
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
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') || contains(github.event.issue.title, '@claude')))
1822
runs-on: ubuntu-latest
1923
permissions:
2024
contents: read

0 commit comments

Comments
 (0)