From 6948f596fe8f8ba262cac535e1d53e948f4c14b3 Mon Sep 17 00:00:00 2001 From: Ray Miller Date: Wed, 10 May 2023 15:04:49 +0100 Subject: [PATCH] Bugfix initialization of new version when we aren't bumping major/minor/patch --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 5ce5b71..45ea149 100644 --- a/main.go +++ b/main.go @@ -132,6 +132,8 @@ func nextVersion(inc string) func(*cli.Context) error { newVer = v.IncMinor() case "major": newVer = v.IncMajor() + default: + newVer = *v } } if c.IsSet("pre-release") {