Repository navigation
Conversation
Collaborator
|
@copilot review changes and keep working |
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
thendependency mechanism for top-level customjobs, so a custom job can run as a pre-step for builtin/compiler-managed jobs. It addresses the gap where pre-step orchestration was only practical via manualneedswiring and did not compose cleanly with generated builtin jobs.What changed
jobs.<job>.thento schema (string | string[]) inmain_workflow_schema.json.then, normalize aliases, and register deferred builtin dependency edges.thenedges after builtin/custom jobs are created, so generated jobs can depend on the custom job without requiring users to patch lockfiles.Compiler behavior
thentargets are normalized and resolved against builtin job IDs.safe-outputs→safe_outputs,pre-activation→pre_activation).needsentries).Code path updates
WorkflowDatanow tracks pendingthendependency edges.buildCustomJobs(...)now extracts and recordsthenrelationships.buildJobs(...)now applies recordedthenrelationships before final conclusion-job ordering.In this example, both
safe_outputsandactivationare compiled to depend onprepare-safe, allowing custom pre-work to run before builtin job execution.