Repository navigation
feat(release-tag): recover a release whose main push produced no run - #111
Merged
Merged
Conversation
A release tag only exists if a push run saw before..after. When GitHub creates no run, nothing can be re-run and release-please stays blocked. Callers can now dispatch the release-commit input, which replays parent..commit through the same validation. Refs #107 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…document recovery limits Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ter one Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Andreas-Garcia
enabled auto-merge (squash)
December 2, 2026 18:57
This was referenced Dec 2, 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.
Summary
A release tag only exists if a push run on
mainsawbefore..after. When GitHub creates no run for that push, nothing can be re-run, manual tags are forbidden by ruleset, and release-please stays blocked on the merged release PR. Callers can now dispatch their workflow with arelease-commitSHA, which replaysparent..committhrough the unchangedvalidate-release.py.Issues
Refs #107
Changes
release/release-range.py(new): resolves the validated range for a push or a dispatch. A dispatched commit must be a full SHA, have exactly one parent and be on the first-parent history oforigin/main.release-tag.yml,release-please.yml,publish-python.yml: accept aworkflow_dispatchonmainwith a non-emptyrelease-commit;publish-python.ymlchecks out the release commit and fails unless the tag points at it.reconcile-release-prs.py: a missing tag error prints thegh workflow runrecovery command.conformance/check-concurrency.sh: event-form workflows declaring therelease-commitinput also accept<stem>-${{ inputs.release-commit || github.sha }}; thegithub.shagroup stays valid.python-check.yml: new optionalrefinput so that a release gate can check the dispatched commit.Test plan
python3 -m unittest discover -s release -p 'test_*.py': 135 tests pass (venv withbuild twine setuptools wheel).bash .github/tests/check-concurrency.sh,bash .github/tests/examples.sh: pass.shellcheckon the two concurrency scripts,actionlint: pass.Screenshots
N/A
Risk
Intent
change, depth deep: shared release, tagging and publication workflows, and a new caller contract. Not breaking: existing callers keep working without the trigger. Review findings are fixed in this PR; none awaits a decision. Remaining limitation: the workflow-file 403 described under Post-deploy verification, with a documented workaround and no permission change.How to revert
Revert the squash merge. Callers pinned to the previous release are unaffected.
Deployment notes
Before any caller adopts the new group: update its org-conformance checker pin, and merge the matching change to
scripts/check-workflow-concurrency.shin github-config. Caller pin bumps (including.github/workflows/release.ymlhere, intentionally unchanged) follow the release; caller-owned jobs must check outinputs.release-commit || github.sha.Post-deploy verification
After the release, on
release-automation-sandbox-20261106: bump the pin, then dispatch an already tagged release commit (expected: existing tag, green run) and a commit without a bump (expected:release=false, no tag). Also recover an untagged release commit after a later change under.github/workflows/: GitHub may refuse the tag or Release with a 403 because no token holds theworkflowspermission (community-reported, unverified for the release App); the README gives the temporary-branch workaround. Tracked in #107.🤖 Generated with Claude Code