Add label_dispatch trigger and generated cross-repo .remote.yml bridge workflows#34836
Closed
Copilot wants to merge 2 commits into
Closed
Add label_dispatch trigger and generated cross-repo .remote.yml bridge workflows#34836Copilot wants to merge 2 commits into
label_dispatch trigger and generated cross-repo .remote.yml bridge workflows#34836Copilot wants to merge 2 commits into
Conversation
… generation Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for central label triggers in GitHub Actions workflows
Add May 26, 2026
label_dispatch trigger and generated cross-repo .remote.yml bridge workflows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change adds a first-class
on.label_dispatchtrigger for CentralRepoOps-style label routing across repositories. Instead of trying to make cross-repo label events native in a single workflow, the compiler now emits a bridge pattern directly: a centralrepository_dispatchlistener plus a generated remote label-trigger workflow.Trigger model
on.label_dispatchsupport in frontmatter extraction and workflow data.label_dispatch: ns-pattern-reviewlabel_dispatch: { label, allowed-repos }main_workflow_schema.json.Central workflow compilation
label_dispatchis present, compiledon:now includes:repository_dispatchwith workflow-specific event type (gh_aw_label_dispatch__<workflow-id>)workflow_dispatchfallbackclient_payload.trigger_labelallowed-repos(owner/repo,owner/*,*).Generated remote bridge workflow
<workflow-id>.remote.yml.pull_requestlabeledrepos.createDispatchEventwith typed payload fields:target_repo,pr_number,head_sha,base_sha,trigger_label,delivery_id,actor.remote.ymlwhenlabel_dispatchis removed.Docs
Label Dispatch Trigger (label_dispatch)section to trigger reference with CentralRepoOps bridge semantics.