Skip to content

fix(gate): accept needs_json input (reusable can't read needs context) - #77

Merged
rldyourmnd merged 1 commit into
mainfrom
fix/gate-needs-context
Aug 4, 2026
Merged

fix(gate): accept needs_json input (reusable can't read needs context)#77
rldyourmnd merged 1 commit into
mainfrom
fix/gate-needs-context

Conversation

@rldyourmnd

Copy link
Copy Markdown
Contributor

Architectural fix: reusable workflows cannot access caller needs context. Redesigned to accept needs_json via input. validate_all: OK.

Reusable workflows CANNOT access the caller's needs context — the original
gate.yml design (toJson(needs) inside the reusable) would always report NOT
FOUND and fail every gate. Redesigned: the caller passes toJSON(needs) via
the new needs_json input. Usage:
  with:
    needs_json: ${{ toJSON(needs) }}
    required_jobs: "check,test,clippy"
@rldyourmnd
rldyourmnd merged commit 3a4afcd into main Aug 4, 2026
8 checks passed
@rldyourmnd
rldyourmnd deleted the fix/gate-needs-context branch August 4, 2026 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant