-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for calculating the next prerelease tag (#125)
* feat: add support for calculating the next prerelease tag Adds a `prerelease` command which will increment the prerelease version based on what the next version will be from the git log, taking into account the current prerelease version from the latest tag. If `--pre-release` is passed in and contains a number then this will be used and all calculations will be skipped. If `--pre-release` is passed in and it matches the pre-release suffix of the current tag then calculations will still occur. Example: ```bash $ svu current v1.2.3-alpha.2+123 $ svu prerelease v1.2.3-alpha.3 $ svu prerelease --pre-release alpha.33 --build 243 v1.2.3-alpha.33+243 ``` Signed-off-by: Bradley Jones <jones.bradley@me.com> * chore: change --pre-release flag as a subcommand of prerelease Signed-off-by: Bradley Jones <bradley.jones@anchore.com> --------- Signed-off-by: Bradley Jones <jones.bradley@me.com> Signed-off-by: Bradley Jones <bradley.jones@anchore.com>
- Loading branch information
1 parent
d25f8d6
commit 881d9c3
Showing
3 changed files
with
191 additions
and
17 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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