diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-02-01 10:09:14 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2019-02-01 10:09:14 +0100 |
commit | 9b619dc02325cfd1db6f9ca006200ff51d7ef6f5 (patch) | |
tree | e654921c506949bb1eecb679e76df592443850a0 /releaser | |
parent | fab41f42d3e23c11651ab75413b01d97e5d37c30 (diff) |
releaser: Adjust patch logic
See #5639
Diffstat (limited to 'releaser')
-rw-r--r-- | releaser/releasenotes_writer.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/releaser/releasenotes_writer.go b/releaser/releasenotes_writer.go index 4c5dff6d6..6e683771c 100644 --- 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) |