Skip to content

Commit

Permalink
allow for puts that only bump the build label
Browse files Browse the repository at this point in the history
otherwise a regular bump or pre needs to be specified

Signed-off-by: Bohan Chen <[email protected]>
  • Loading branch information
chenbh committed Jun 28, 2022
1 parent ff0b158 commit b37c978
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ be one of:
* Major version bump: version file = 1.2.4-SNAPSHOT, release version = 2.0.0
* Minor version bump: version file = 1.2.4-SNAPSHOT, release version = 1.3.0
* Promote snapshot: version file = 1.2.4-SNAPSHOT, release version = 1.2.4
* `build_without_version`: *Optional.* Same as `pre_without_version` but for
build labels.

### Running the tests

Expand Down
2 changes: 1 addition & 1 deletion out/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func main() {
if err != nil {
fatal("setting version", err)
}
} else if request.Params.Bump != "" || request.Params.Pre != "" {
} else if request.Params.Bump != "" || request.Params.Pre != "" || request.Params.Build != "" {
bump := version.BumpFromParams(
request.Params.Bump,
request.Params.Pre,
Expand Down

0 comments on commit b37c978

Please sign in to comment.