Repository navigation
fix(upgrade): close the adoption issue a no-diff run created - #1350
Merged
Merged
Conversation
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.
Summary
A
workflow_dispatchof the scaffoldeddevkit-upgrade.ymlagainst analready-current consumer stranded the adoption issue it had just opened: the
issue is necessarily created before
install.sh --forceruns (the branchname embeds its number, the in-shell commit needs the
Refs:line), so azero-diff run correctly skipped publish + PR and exited green — with an open
issue no PR would ever close.
Live occurrence:
exo-pet/exo-fleet#270, run 30986580730.Change
Find or create the adoption issuenow exposes acreatedstep output(
trueon the create branch,falseon the reuse branch).proceed == 'true' && changed != 'true':gh issue closewith a "no diff at<version>"comment and
--reason "not planned";rc1 → rc2 → final, where an interim bump canlegitimately be a no-op) → comment only, issue left open.
The
createdoutput is routed throughenv:like every other value theworkflow's
run:blocks consume (zizmor template-injection rule).Testing
test_no_diff_dispatch_cleans_up_the_issue_it_createdintests/test_workflow_devkit_upgrade.py(RED → GREEN, committed separately).uv run pytest tests/test_workflow_devkit_upgrade.py tests/test_scaffold_drift.py tests/test_scaffold_lint.py— 68 passed.just precommit(full suite, all files) green locally, incl. actionlint andyamllint on the changed template.
Closes #1347