From 318487de06ad23df2bf536d18aa9f1b45c13778d Mon Sep 17 00:00:00 2001 From: gf712 Date: Mon, 6 Jul 2026 20:36:05 +0100 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_017NJ25FGK2EUWCLz2PaUwbT --- .github/workflows/claude.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/claude.yml b/.github/workflows/claude.yml index 16a732e5..d6ff406e 100644 --- a/.github/workflows/claude.yml +++ b/.github/workflows/claude.yml @@ -1,20 +1,24 @@ name: Claude Code on: + issue_comment: + types: [created] pull_request_review_comment: types: [created] + issues: + types: [opened] pull_request_review: types: [submitted] jobs: claude: + # No actor gate needed: claude-code-action only responds to users with + # write access to the repository. if: | - github.actor == 'gf712' && ( - (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || - (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) || - (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) || - (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude'))) - ) + (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || + (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) || + (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) || + (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude'))) runs-on: ubuntu-latest permissions: contents: read