mirror of
https://github.com/Sea-Haven-Industries/.github.git
synced 2026-10-02 17:53:16 +00:00
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:
parent
a7e3cd1275
commit
146bd0d476
1 changed files with 7 additions and 1 deletions
8
.github/workflows/claude-code-review.yaml
vendored
8
.github/workflows/claude-code-review.yaml
vendored
|
|
@ -14,6 +14,11 @@ on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types: [review_requested]
|
types: [review_requested]
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
direct_call:
|
||||||
|
description: Bypass event filtering (set automatically for reusable workflow callers)
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
secrets:
|
secrets:
|
||||||
anthropic_api_key:
|
anthropic_api_key:
|
||||||
required: true
|
required: true
|
||||||
|
|
@ -34,7 +39,8 @@ jobs:
|
||||||
contains(github.event.comment.body, '@claude')) ||
|
contains(github.event.comment.body, '@claude')) ||
|
||||||
(github.event_name == 'pull_request' &&
|
(github.event_name == 'pull_request' &&
|
||||||
github.event.requested_team.slug == 'claude') ||
|
github.event.requested_team.slug == 'claude') ||
|
||||||
github.event_name == 'workflow_dispatch'
|
github.event_name == 'workflow_dispatch' ||
|
||||||
|
inputs.direct_call == true
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue