fix(release): YT-20 changelog lists only commits since previous tag #66
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/release-notes-changelog-range-YT-20"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes YT-20.
Problem
The
create-releasejob built the release changelog fromgit describe --tags --abbrev=0 $"($tag)^", where$tag(e.g.v0.4.0) is derived from therelease/*branch name. At the moment the job runs, that tag does not yet exist as a ref - the same workflow creates it later via the Forgejo releases API. Thegit describecall therefore failed, theelsebranch ran, andgit log --oneline(no range) emitted the entire commit history. Every release listed all commits ever made instead of only those since the previous release.Fix
Resolve the previous tag from
HEAD^instead of the not-yet-created$tag.HEADis the merge commit just landed onmain; the new tag has not been created yet, so the nearest reachable tag fromHEAD^is the previous release. The surroundingif/elseis unchanged, so the first-release path (no prior tag) still falls through to the fullgit log --onelinewithout error. This matches the form already shipped in the siblinga8n-runrepos.Acceptance criteria
.forgejo/workflows/create-release.ymlresolves the previous tag withgit describe --tags --abbrev=0 HEAD^instead of$"($tag)^".<prev_tag>..HEAD, not the full history.git log --onelineand does not error.Note: the canonical template at
~/projects/a8n-run/governance/templates/forgejo-workflows/create-release.ymlis still on the broken form and should be fixed separately to stop the regression (out of scope here).