Add prerelease version support with alpha/beta/rc tags#32
Open
disintegrator wants to merge 2 commits intomainfrom
Open
Add prerelease version support with alpha/beta/rc tags#32disintegrator wants to merge 2 commits intomainfrom
disintegrator wants to merge 2 commits intomainfrom
Conversation
Implements the prerelease feature as specified in SPEC.md: - Add `bumper pre enter <group> --tag <tag>` command to enter prerelease mode - Add `bumper pre exit <group>` command to graduate to stable release - Add `bumper pre status [group]` command to show prerelease state - Modify `bumper commit` to handle prerelease mode: - Move bump files to .bumper/prerelease/ instead of deleting - Calculate prerelease versions based on accumulated and pending bumps - Update prerelease counter in state file State management: - Prerelease state tracked in .bumper/prerelease.toml - Stores tag, from_version, and counter per group - State file is removed when no groups are in prerelease Version calculation: - Bump levels dictate the base version from from_version - Counter resets when base version escalates, increments otherwise - Supports tag switching mid-prerelease (resets counter) https://claude.ai/code/session_01UtmkqyhJFRtM8cgWD6dh3y
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.
Summary
This PR adds comprehensive prerelease version support to Bumper, enabling release groups to publish unstable versions (alpha, beta, rc, etc.) before graduating to stable releases. The implementation includes new CLI commands, state management, and seamless integration with existing bump workflows.
Key Changes
New
bumper precommand group with three subcommands:bumper pre enter <group> --tag <tag>: Enter prerelease mode for a release groupbumper pre exit <group>: Exit prerelease mode and graduate to stable releasebumper pre status [group]: Show current prerelease statePrerelease state management via
.bumper/prerelease.toml:Modified bump file lifecycle:
.bumper/prerelease/instead of deletedpre exit, all accumulated changes are consolidated into a single stable changelog entryIntelligent version calculation:
Enhanced
bumper commitbehavior:Append-only changelog design:
Implementation Details
workspace/prerelease.gomodule handles all prerelease state operationscommands/pre/package with enter, exit, and status subcommandshttps://claude.ai/code/session_01UtmkqyhJFRtM8cgWD6dh3y