fix(reusable): thread the dispatch pr_number as a workflow_call input #24

Merged
steve merged 1 commits from fix/dispatch-pr-input into main 2026-07-16 03:34:29 +00:00
Owner

Second Gitea 1.27 casualty, found while verifying the netherstorm fix: the caller's workflow_dispatch inputs don't propagate into a called workflow's github.event (same rework that changed event_name — PR-event payloads DO propagate, dispatch inputs don't). A manual "review PR #N" dispatch arrived with PR= and died at the entrypoint's PR required check (observed: mort run 5167).

Fix: accept pr_number as an explicit workflow_call input and fold it into the PR env fallback chain. Caller stubs pass pr_number: ${{ github.event.inputs.pr_number }} (empty on non-dispatch events, harmless). Mirrored onto the hotfix lineage with stub updates + pin bumps.

🤖 Generated with Claude Code

Second Gitea 1.27 casualty, found while verifying the netherstorm fix: the caller's `workflow_dispatch` **inputs** don't propagate into a called workflow's `github.event` (same rework that changed `event_name` — PR-event payloads DO propagate, dispatch inputs don't). A manual "review PR #N" dispatch arrived with `PR=` and died at the entrypoint's `PR required` check (observed: mort run 5167). Fix: accept `pr_number` as an explicit `workflow_call` input and fold it into the `PR` env fallback chain. Caller stubs pass `pr_number: ${{ github.event.inputs.pr_number }}` (empty on non-dispatch events, harmless). Mirrored onto the hotfix lineage with stub updates + pin bumps. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
steve added 1 commit 2026-07-16 03:34:21 +00:00
fix(reusable): thread the dispatch pr_number as a workflow_call input
Gadfly review (reusable) / review (pull_request) Successful in 1s
Adversarial Review (Gadfly) / review (pull_request) Successful in 1s
Build & push image / build-and-push (pull_request) Successful in 3s
64d34bd33b
Gitea >= 1.27 does not propagate the caller's workflow_dispatch inputs
into a called workflow's github.event (same rework that changed
event_name), so a manual 'review PR #N' dispatch arrived with an empty
PR and died at the entrypoint's 'PR required' check. Accept pr_number as
an explicit workflow_call input and fold it into the PR env fallback
chain; caller stubs pass github.event.inputs.pr_number through.

Co-Authored-By: Claude Fable 5 <[email protected]>
steve merged commit f468fe6245 into main 2026-07-16 03:34:29 +00:00
steve deleted branch fix/dispatch-pr-input 2026-07-16 03:34:30 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: steve/gadfly#24