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

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)