Add 'finalize' bump#36
Merged
Merged
Conversation
…version The Prepare Release workflow had no way to ship a beta's base as stable, and minor/bugfix/major bumps ignored the bN suffix — so from 0.3.0b2, choosing 'minor' (the intuitive "release it" choice) produced 0.4.0, skipping 0.3.0 entirely. - Add a 'finalize' bump that drops the bN suffix and releases the current beta's base as stable (0.3.0b2 -> 0.3.0). - Refuse minor/bugfix/major when the current version is a beta, with a message pointing to 'finalize' (those bumps would skip the in-progress version). - Error if 'finalize' is run on a non-beta version. - Derive is_beta for the switcher/redirect steps from the COMPUTED version (ends in bN?) rather than the raw beta checkbox, so finalize is always labelled stable and a mismatched checkbox can't mislabel the docs switcher. Verified the version math across finalize / guarded / normal paths. Claude-Session: https://claude.ai/code/session_018MLraeaoQBWFDScg72W41h
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #36 +/- ##
=======================================
Coverage 90.18% 90.18%
=======================================
Files 39 39
Lines 3902 3902
=======================================
Hits 3519 3519
Misses 383 383 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
The Prepare Release workflow had no way to ship a beta's base as stable, and minor/bugfix/major bumps ignored the bN suffix — so from 0.3.0b2, choosing 'minor' (the intuitive "release it" choice) produced 0.4.0, skipping 0.3.0 entirely.
Verified the version math across finalize / guarded / normal paths.