ref: 477684022f6816e6d2a0358caa6432c4d6f65da5
parent: 70d8ddcb60b9102d57bcc6764ffb28bc4fa34f6d
author: Bjørn Erik Pedersen <[email protected]>
date: Wed Jul 5 21:32:55 EDT 2017
releaser: Adjustments
--- a/releaser/git.go
+++ b/releaser/git.go
@@ -29,7 +29,6 @@
templateChanges = "templateChanges"
coreChanges = "coreChanges"
outChanges = "outChanges"
- docsChanges = "docsChanges"
otherChanges = "otherChanges"
)
@@ -91,8 +90,6 @@
category = notesChanges
} else if regexp.MustCompile("(?i)tpl|tplimpl:|layout").MatchString(los) {
category = templateChanges
- } else if regexp.MustCompile("(?i)docs?:|documentation:").MatchString(los) {
- category = docsChanges
} else if regexp.MustCompile("(?i)hugolib:").MatchString(los) {
category = coreChanges
} else if regexp.MustCompile("(?i)out(put)?:|media:|Output|Media").MatchString(los) {
@@ -247,7 +244,7 @@
}
// Ignore autogenerated commits etc. in change log. This is a regexp.
-const ignoredCommits = "releaser?:|snapcraft:"
+const ignoredCommits = "releaser?:|snapcraft:|Merge commit|Squashed|Revert"
func gitLogBefore(ref, tag string) (string, error) {
var prevTag string
--- a/releaser/releasenotes_writer.go
+++ b/releaser/releasenotes_writer.go
@@ -75,7 +75,6 @@
{{ $tmplChanges := index . "templateChanges" -}}
{{- $outChanges := index . "outChanges" -}}
{{- $coreChanges := index . "coreChanges" -}}
-{{- $docsChanges := index . "docsChanges" -}}
{{- $otherChanges := index . "otherChanges" -}}
{{- with $tmplChanges -}}
### Templates
@@ -88,10 +87,6 @@
{{- with $coreChanges -}}
### Core
{{ template "change-section" . }}
-{{- end -}}
-{{- with $docsChanges -}}
-### Docs
-{{ template "change-section" . }}
{{- end -}}
{{- with $otherChanges -}}
### Other
--- a/releaser/releaser.go
+++ b/releaser/releaser.go
@@ -24,6 +24,7 @@
"os/exec"
"path/filepath"
"regexp"
+ "strings"
"github.com/gohugoio/hugo/helpers"
)
@@ -84,7 +85,7 @@
if try {
rh.git = func(args ...string) (string, error) {
- fmt.Println("git", args)
+ fmt.Println("git", strings.Join(args, " "))
return "", nil
}
} else {