aboutsummaryrefslogtreecommitdiffhomepage
path: root/releaser
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-04-01 09:07:19 +0200
committerBjørn Erik Pedersen <[email protected]>2019-04-01 09:07:19 +0200
commitf7ef7d3761f2bc543f672c56b7af309d942bca97 (patch)
tree7119adcd4ef58a07a3551d3cf7254fe67db33180 /releaser
parentf9d6feca0802cd83c4d843244ce389cf7c792cec (diff)
downloadhugo-f7ef7d3761f2bc543f672c56b7af309d942bca97.tar.gz
hugo-f7ef7d3761f2bc543f672c56b7af309d942bca97.zip
releaser: Adjust patch vs images logic
Fixes #5664
Diffstat (limited to 'releaser')
-rw-r--r--releaser/releasenotes_writer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/releaser/releasenotes_writer.go b/releaser/releasenotes_writer.go
index 6e683771c..15602dc44 100644
--- a/releaser/releasenotes_writer.go
+++ b/releaser/releasenotes_writer.go
@@ -286,7 +286,7 @@ func (r *ReleaseHandler) writeReleaseNotesToDocs(title, sourceFilename string) (
defer f.Close()
fmTail := ""
- if strings.Count(title, ".") > 1 {
+ if !strings.HasSuffix(title, ".0") {
// Bug fix release
fmTail = `
images: