releaser: Adjust patch logic - hugo - [fork] hugo port for 9front
HTML git clone git@git.drkhsh.at/hugo.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit 9b619dc02325cfd1db6f9ca006200ff51d7ef6f5
DIR parent fab41f42d3e23c11651ab75413b01d97e5d37c30
HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date: Fri, 1 Feb 2019 10:09:14 +0100
releaser: Adjust patch logic
See #5639
Diffstat:
M releaser/releasenotes_writer.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/releaser/releasenotes_writer.go b/releaser/releasenotes_writer.go
@@ -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)