Repository navigation
docs: release recovery with protected tags and immutable releases - #580
Conversation
jrusso1020
left a comment
There was a problem hiding this comment.
APPROVE. Reviewed at b6fda225027dfe2e919b42fac4af8b8a4054ce26 (docs only, RELEASE.md, on top of #576).
I checked the settings it describes against the repository (read-only API):
- Ruleset
Protect release tags(id 27341621) is active onrefs/tags/v*, with rulesdeletion,non_fast_forwardandupdate, and the admin role (RepositoryRole5) as the only bypass. Creation isn't restricted, so "the workflow can still create them" is right. GET /repos/heygen-com/heygen-cli/immutable-releasesreturns{"enabled": true}.
The failed-run path matches cleanup-failed-release.sh at this head. The script checks that the tag is this run's annotated tag, refuses on a published release or another run's draft, deletes this run's drafts, and only then runs the leased git push … :refs/tags/<tag>. With the ruleset, that last push is rejected, so the job fails after the drafts are gone, exactly as the new text says. An admin deleting the tag and then re-dispatching with the same commit works, and reusing the version number is fine because that release was never published. Re-running the cleanup job alone after it failed at the tag step would fail the same way, and the text correctly limits that advice to a job that failed before the tag step.
The three refusal cases (another run's draft, an incomplete published release, a complete one) follow from immutable releases. In particular, "release the next patch version" for an incomplete published release is right, since a deleted published release's version can't be reused.
Nit (non-blocking): the ruleset pattern refs/tags/v* also covers dev tags (v0.6.1-dev.<timestamp>). So dev-release.yml's cleanup job now fails at its tag step the same way and leaves the failed dev tag for an admin to remove. A line saying the same recovery applies to dev releases, or narrowing the ruleset to stable tags if that's preferred, would keep someone from being surprised by it.
Need: yes, the recovery steps would otherwise tell people to do things the new settings block · Size: ok · Reuse: n/a (docs) · Simpler: already minimal · Structure: fine (checked against cleanup-failed-release.sh; no split)
Risk: low — documentation only.
— Rames
b6fda22 to
d6a8ec3
Compare
0c4ee66 to
c40538e
Compare
Co-Authored-By: Claude Opus 5.5 <[email protected]>
d6a8ec3 to
c9e8c40
Compare
Scope
Surfaces: Docs (release process) | Module: Release
Summary
Updates the release recovery steps in
RELEASE.mdfor two repository settings that are now on: release tags (v*) are protected by a ruleset, and published releases are immutable. Docs only.How it works
Testing
Checked the ruleset and the immutable-releases setting through the GitHub API, and the recovery steps against
cleanup-failed-release.sh.🤖 Generated with Claude Code