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.
This commit is contained in:
Adam Moussa 2026-05-13 16:17:25 -04:00
parent a7e3cd1275
commit 146bd0d476

View file

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