From 146bd0d47636f2048d2d07573cbc02152b29f30b Mon Sep 17 00:00:00 2001 From: Adam Moussa <166072409+amoussa1229@users.noreply.github.com> Date: Wed, 13 May 2026 16:17:25 -0400 Subject: [PATCH] Fix workflow_call invocations being silently skipped Add a direct_call boolean input (defaults to true) to workflow_call so reusable workflow callers bypass the event-specific filtering gate. Without this, callers triggered by e.g. pull_request opened would hit the pull_request branch which requires requested_team.slug == 'claude', causing a silent no-op. --- .github/workflows/claude-code-review.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/claude-code-review.yaml b/.github/workflows/claude-code-review.yaml index cc2f6b9..4c53cae 100644 --- a/.github/workflows/claude-code-review.yaml +++ b/.github/workflows/claude-code-review.yaml @@ -14,6 +14,11 @@ on: pull_request: types: [review_requested] workflow_call: + inputs: + direct_call: + description: Bypass event filtering (set automatically for reusable workflow callers) + type: boolean + default: true secrets: anthropic_api_key: required: true @@ -34,7 +39,8 @@ jobs: contains(github.event.comment.body, '@claude')) || (github.event_name == 'pull_request' && github.event.requested_team.slug == 'claude') || - github.event_name == 'workflow_dispatch' + github.event_name == 'workflow_dispatch' || + inputs.direct_call == true runs-on: ubuntu-latest timeout-minutes: 10 steps: