releaser: Adjust patch logic

See #5639
This commit is contained in:
Bjørn Erik Pedersen 2019-02-01 10:09:14 +01:00
parent fab41f42d3
commit 9b619dc023
No known key found for this signature in database
GPG Key ID: 330E6E2BD4859D8F
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ Hugo now has:
var templateFuncs = template.FuncMap{
"isPatch": func(c changeLog) bool {
return strings.Count(c.Version, ".") > 1
return !strings.HasSuffix(c.Version, "0")
},
"issue": func(id int) string {
return fmt.Sprintf(issueLinkTemplate, id, id)