File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
main/kotlin/git/semver/plugin/semver
test/kotlin/git/semver/plugin/scm Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -141,10 +141,10 @@ internal class MutableSemVersion(
141141 }
142142
143143 settings.patchRegex.containsMatchIn(text) ->
144- if (! isPreRelease ) {
144+ if (preRelease.number == null ) {
145145 bumpPatch + = 1
146146 bumpPre = 0
147- } else if (preRelease.number != null ) {
147+ } else {
148148 bumpPre + = 1
149149 }
150150 }
Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ class GitProviderTest {
233233 commit(it, " fix: update semver plugin" , gitProvider)
234234 val actual = release(gitProvider, it, " -" )
235235
236- assertEquals(" 0.0.2 " , actual.toVersionString())
236+ assertEquals(" 0.0.3 " , actual.toVersionString())
237237 }
238238 printFoot()
239239 }
@@ -254,7 +254,7 @@ class GitProviderTest {
254254 commit(it, " fix: update semver plugin" , gitProvider)
255255 val actual = release(gitProvider, it, " -" )
256256
257- assertEquals(" 0.0.2 " , actual.toVersionString())
257+ assertEquals(" 0.0.3 " , actual.toVersionString())
258258 }
259259 printFoot()
260260 }
You can’t perform that action at this time.
0 commit comments