Repository navigation
fix(release): pick the version after collecting changes/, so an Added fragment gives a minor - #210
Merged
Merged
Conversation
… fragment gives a minor When npm already had the version, bin/release asked `changelog level --next` before the changes/ fragments were in the changelog, so a fragment with Added still gave the next patch; version:check then refused the release pull request (wordpress-cli 0.1.3, raised to 0.2.0 by hand, FIND-2860). The fragments are now collected first, the level is read from the section that holds them, and the version is raised once more when it needs to be. The raise itself moves into a function, called for both steps. scripts/release.test.ts runs bin/release in a temporary repository with npm, pnpm and gh stubbed: an Added fragment raises a taken 0.1.2 to 0.2.0, a Fixed one to 0.1.3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s need more; the test upgrades with bin/release; review Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…it passes The published CLIs still register account-remove.unknown-profile and account-rename.unknown-profile; cli-base 0.126.1 lists the pair as a shared difference. The help snapshot gains Linear in the family list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
leemour
added a commit
that referenced
this pull request
Nov 23, 2026
) bin/release takes the release lock with flock. macOS and Windows runners do not ship it, so the three tests from #210 failed there with empty output and stopped the 0.33.1 release run 45100386778. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
Why
FIND-2860: wordpress-cli's
bin/releasepicked 0.1.3 for a release whosechanges/fragment wasAdded. It askedchangelog level --nextbefore the fragments were in the changelog, so it saw only Fixed;version:checkthen refused the release pull request, and the version was raised to 0.2.0 by hand (WireCatLabs/wordpress-cli#8).What
bin/release: the raise moves into arenumberfunction. When npm has the version, it renumbers to the next free one, collects the fragments, reads the level from the section that now holds them, and renumbers again when it needs more (an Added is a minor).chore(release)pull request.scripts/release.test.tsrunsbin/releasein a temporary repository with npm, pnpm and gh stubbed: a taken 0.1.2 with an Added fragment gives 0.2.0, with a Fixed one 0.1.3, and a hand-dated 0.1.3 with an Added fragment gives 0.2.0. It is intemplate.jsonfiles, soupgradekeeps it next tobin/release.changes/fix-release-level-after-fragments.md.Testing
scripts/release.test.ts: 3 pass; the Added case fails on the oldbin/release.pnpm test(the placeholder test caught aclidev-like name in the first draft, fixed), lint, typecheck, docs:check pass.🤖 Generated with Claude Code