Skip to content

ci: pin release changelog to the previous stable tag - #22

Merged
hooyao merged 1 commit into
mainfrom
fix/release-changelog-start-tag
Jun 18, 2026
Merged

ci: pin release changelog to the previous stable tag#22
hooyao merged 1 commit into
mainfrom
fix/release-changelog-start-tag

Conversation

@hooyao

@hooyao hooyao commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Problem

The 0.4.6 release changelog listed #18#21 with Full Changelog: v0.4.2...v0.4.6, instead of
just #21 (v0.4.5...v0.4.6).

Cause: the release workflow ran gh release create --generate-notes without an explicit
start tag, so GitHub auto-selected the changelog starting point and reached back to v0.4.2. This
was compounded by actions/checkout@v4 doing a shallow clone with no tags, so nothing in CI
could anchor the range.

(The tags themselves are fine — v0.4.2→v0.4.6 map 1:1 to commits in order; only the changelog
range selection was wrong.)

Fix

  • actions/checkout with fetch-depth: 0 + fetch-tags: true so all tags are present in CI.
  • Compute the previous stable v* tag (excluding the current version and any
    -beta/-alpha/-rc/-pre) and pass it as --notes-start-tag, so each release's changelog covers
    exactly its own commits.

The already-published 0.4.6 notes were regenerated out-of-band (via the generate-notes API with
previous_tag_name=v0.4.5); this change prevents the issue for all future releases.

🤖 Generated with Claude Code

gh's --generate-notes was left to auto-select the changelog start point, and on
v0.4.6 it reached back to v0.4.2 (listing #18#21) instead of v0.4.5..v0.4.6.

- checkout with fetch-depth: 0 + fetch-tags so all tags are available in CI
  (shallow checkout has none, which is what defeated start-tag detection).
- Compute the previous stable v* tag (excluding the current version and any
  -beta/-alpha/-rc/-pre) and pass it as --notes-start-tag, so the auto-generated
  changelog covers exactly the commits in this release.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@hooyao
hooyao merged commit 22a5a73 into main Jun 18, 2026
2 checks passed
@hooyao
hooyao deleted the fix/release-changelog-start-tag branch June 18, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant