We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 721588e commit 83c5ef6Copy full SHA for 83c5ef6
pkg/releaser.go
@@ -112,7 +112,7 @@ func WithPrereleaseIncrement() ReleaserMod {
112
return func(r *Releaser) {
113
114
// if a pre string already exists
115
- if len(r.v.preString) > 0 {
+ if r.HasPrerelease() {
116
preParts := strings.Split(r.v.preString, ".")
117
prePointer, _ := strconv.Atoi(preParts[1])
118
prePointer += 1
0 commit comments