Skip to content

chore: create the tag together with draft releases and remove duplicate 3.1.1 changelog sections - #44

Merged
udondan merged 1 commit into
mainfrom
worktree-chore-force-tag-creation
Sep 13, 2026
Merged

udondan merged 1 commit into
mainfrom
worktree-chore-force-tag-creation

Conversation

@udondan

@udondan udondan commented Sep 13, 2026

Copy link
Copy Markdown
Owner

What happened

After #40 enabled "draft": true, the release-please run that merged #41 created the v3.1.1 draft release and then, in the same run, could not find it: a draft has no tag, and release-please's release lookup does not see drafts. It treated the repository as unreleased, rebuilt the changelog from the whole history, hit the Release-As: 3.1.1 footer again and opened another 3.1.1 release PR. The workflow's auto-merge merged it, which repeated the cycle (#42, #43) until the run was cancelled.

The first v3.1.1 (from #41, commit 9baae9a) is fine: it was published with reminders.tar.gz attached and the homebrew formula is at 3.1.1. #42 and #43 only produced two untagged drafts, both named v3.1.1, which must be deleted manually.

Fix

  • release-please-config.json: "force-tag-creation": true. release-please then creates the tag together with the draft release, so its tag fallback finds the release immediately. This is the documented fix for exactly this situation (see the force-tag-creation comment in release-please's manifest docs).
  • CHANGELOG.md: removed the two v3.1.1...v3.1.1 sections written by chore(main): release 3.1.1 #42 and chore(main): release 3.1.1 #43. The remaining 3.1.1 section is the one that matches the published release.
  • CLAUDE.md: documents why force-tag-creation must stay enabled with draft.

No release is triggered by this PR: the only commits since v3.1.1 are release commits and this chore.

…te 3.1.1 changelog sections

With "draft": true release-please created the v3.1.1 release without a tag.
In the same run it then could not find the release it had just created,
fell back to the full commit history and opened another 3.1.1 release PR,
which the workflow auto-merged. That repeated for #42 and #43 until the
run was cancelled.

"force-tag-creation" makes release-please create the tag at the same time
as the draft release, which is the documented fix for exactly this case.
The two changelog sections produced by the repeated PRs are removed; the
remaining 3.1.1 section is the one that matches the published release.
@udondan
udondan merged commit a2d65e9 into main Sep 13, 2026
2 checks passed
@udondan
udondan deleted the worktree-chore-force-tag-creation branch September 13, 2026 20:55
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