Skip to content

fix(release): fetch tags so changelog tracks versions correctly#775

Merged
wpfleger96 merged 2 commits into
mainfrom
worktree-wpfleger+fix-changelog-tags
May 28, 2026
Merged

fix(release): fetch tags so changelog tracks versions correctly#775
wpfleger96 merged 2 commits into
mainfrom
worktree-wpfleger+fix-changelog-tags

Conversation

@wpfleger96
Copy link
Copy Markdown
Collaborator

The just release changelog was including every commit since the beginning of time instead of just commits since the last release. Both v0.3.1 (#769) and v0.3.2 (#774) showed "Changes since v0.0.5" with 200+ commits.

Root cause: git fetch origin main --quiet on justfile line 391 fetches the branch but not tags. Tags created by the auto-tag workflow on GitHub never reached the developer's local repo, so git describe --tags --abbrev=0 --match 'v[0-9]*' fell back to v0.0.5 (the most recent tag reachable via commit parents).

  • adds --tags to the fetch so git describe finds the latest version tag
  • rewrites CHANGELOG.md with correct per-version entries based on actual tag ranges

… correctly

git fetch origin main --quiet doesn't fetch tags. Tags created by the
auto-tag workflow on GitHub never reached the developer's local repo,
so git describe fell back to v0.0.5 and the changelog included every
commit since the beginning of time. Adding --tags fixes this.

Also rewrites CHANGELOG.md with correct per-version entries based on
actual tag ranges.
@wpfleger96 wpfleger96 force-pushed the worktree-wpfleger+fix-changelog-tags branch from e0eedd8 to c3e8349 Compare May 28, 2026 19:07
@wpfleger96 wpfleger96 marked this pull request as ready for review May 28, 2026 19:07
@wpfleger96 wpfleger96 requested a review from a team as a code owner May 28, 2026 19:07
@wpfleger96 wpfleger96 enabled auto-merge (squash) May 28, 2026 19:08
@wpfleger96 wpfleger96 merged commit 5f2423c into main May 28, 2026
16 checks passed
@wpfleger96 wpfleger96 deleted the worktree-wpfleger+fix-changelog-tags branch May 28, 2026 19:17
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.

2 participants