Skip to content

Commit 9b619dc

Browse files
committed
releaser: Adjust patch logic
See #5639
1 parent fab41f4 commit 9b619dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

releaser/releasenotes_writer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Hugo now has:
119119

120120
var templateFuncs = template.FuncMap{
121121
"isPatch": func(c changeLog) bool {
122-
return strings.Count(c.Version, ".") > 1
122+
return !strings.HasSuffix(c.Version, "0")
123123
},
124124
"issue": func(id int) string {
125125
return fmt.Sprintf(issueLinkTemplate, id, id)

0 commit comments

Comments
 (0)