Skip to content

feat(version): allows bumping a prerelease version#105

Merged
hdevalke merged 1 commit intoconvco:masterfrom
koozz:master
Jan 23, 2023
Merged

feat(version): allows bumping a prerelease version#105
hdevalke merged 1 commit intoconvco:masterfrom
koozz:master

Conversation

@koozz
Copy link
Copy Markdown
Contributor

@koozz koozz commented Jan 20, 2023

When prerelease is given as a parameter with the value 'beta', the version would look like: x.y.z-beta.1, if this tag is present, the next bump would be x.y.z-beta.2.

Fixes: #90

Copy link
Copy Markdown
Collaborator

@hdevalke hdevalke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR.

I will have a look at it more in detail later.

src/cli.rs Outdated
pub patch: bool,
/// Suffix with a prerelease version. Only works in combination with bump
#[clap(long, default_value = "")]
pub prerelease: String,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it is good to use semver::Prerelease.
This will validate the command line argument

When prerelease is given as a parameter with the value 'beta', the
version would look like: x.y.z-beta.1

Fixes: #90

Signed-off-by: Jan van den Berg <koozz@linux.com>
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.

Handle pre-release channels

2 participants