Repository navigation
ci: draft a GitHub Release when a v* tag is pushed - #119
Merged
Merged
Conversation
v0.1.0 was cut by hand: the tag commit, its CI run and the SHA in the notes were all copied manually. release.yml now runs on a pushed v* tag, refuses a commit that is not on master or whose required checks (read from the master ruleset, the single list) did not all pass there, and opens a draft release from templates/RELEASE_NOTES.template.md with the tag, full SHA, previous tag, compare link and CI run filled in. It never publishes and never touches an existing release. The maintenance workflow gains a "Cut a release" section. A dry run of the three step scripts against v0.1.0 verified the checks and produced the expected notes; creating the draft itself is first exercised by the next tag. Closes #56 Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Reader problem and change
v0.1.0 was cut by hand. The tag commit, the CI run on it, the SHA in the notes and the SHA in the adoption guide were all copied manually. Adopters pin that SHA, so one typo ships broken instructions.
.github/workflows/release.ymlruns when av*tag is pushed:master.masterruleset passed on it. The ruleset is read through the API, so the list lives in one place.templates/RELEASE_NOTES.template.md, filling in the tag, full SHA, previous tag, compare link, changelog link and CI run. Every prose placeholder stays for a human.It never publishes, never edits an existing release, writes only
contents, and passes every input throughenv.guides/maintenance-workflow.mdgains a "Cut a release" section covering the changelog rename, version bump, tagging the green commit (tags can't be moved), the draft, publishing, and the follow-up pin PR.Closes #56
Evidence
A dry run of the three step scripts, extracted from the workflow file, against
v0.1.0with real API calls:v0.1.0 -> 96e04e6… (on master);ok:for all five required checks;Compared from: the first commitand the changelog link.Only
gh release createwas replaced byecho.Verification
tests/test_release_workflow.pychecks:GITHUB_TOKENmay readrules/branches/master; the dry run used a personal token.Limitations
v*tag reachable from the commit. A hotfix tag on an older line would compare against that line, not the newest release.🤖 Generated with Claude Code