Repository navigation
feature: add strategy job_index field to GitHub scenario - #23
Merged
Merged
Conversation
tixxdz
commented
Jun 24, 2026
Collaborator
- Add job index to the GitHub scenario type to uniquely identify a job within a matrix or reusable workflow run.
- Propagate the new field through clone, zero-check, and both JSON serialization paths.
There was a problem hiding this comment.
Pull request overview
Adds a job_index field to the GitHub scenario model to uniquely identify jobs within matrix/reusable workflow runs, and ensures it is preserved across cloning, zero checks, and both JSON serialization paths.
Changes:
- Added
JobIndextoScenarioGitHubwithjson:"job_index"tagging. - Propagated
JobIndexthroughScenarioGitHub.Clone(),ScenarioGitHub.IsZero(),ScenarioGitHub.MarshalJSON(), andScenarioGitHub.MarshalJSONMap(). - Updated the profile round-trip test fixture to include
JobIndexto validate JSON marshal/unmarshal coverage.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| pkg/ongoing/scenarios.go | Introduces and wires JobIndex through clone/zero-check and both JSON serialization implementations for ScenarioGitHub. |
| pkg/ongoing/types_test.go | Extends the profile round-trip fixture with JobIndex to exercise serialization/unmarshalling for the new field. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
nicolasparada
requested changes
Jun 24, 2026
nicolasparada
left a comment
Collaborator
There was a problem hiding this comment.
Can we change the data type? numeric
- Add job index to the GitHub scenario type to uniquely identify a job within a matrix or reusable workflow run. - Propagate the new field through clone, zero-check, and both JSON serialization paths.
tixxdz
force-pushed
the
pr/tixxdz/06-strategy-job-index
branch
from
June 24, 2026 23:07
0eac3ab to
7e8c472
Compare
nicolasparada
approved these changes
Jun 25, 2026
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.