Skip to content

Commit

Permalink
releaser: Adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Jul 5, 2017
1 parent 70d8ddc commit 4776840
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
5 changes: 1 addition & 4 deletions releaser/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const (
templateChanges = "templateChanges"
coreChanges = "coreChanges"
outChanges = "outChanges"
docsChanges = "docsChanges"
otherChanges = "otherChanges"
)

Expand Down Expand Up @@ -91,8 +90,6 @@ func gitInfosToChangeLog(infos gitInfos) *changeLog {
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) {
Expand Down Expand Up @@ -247,7 +244,7 @@ func getGitInfosBefore(ref, tag string, remote bool) (gitInfos, error) {
}

// 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
Expand Down
5 changes: 0 additions & 5 deletions releaser/releasenotes_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ Hugo now has:
{{ $tmplChanges := index . "templateChanges" -}}
{{- $outChanges := index . "outChanges" -}}
{{- $coreChanges := index . "coreChanges" -}}
{{- $docsChanges := index . "docsChanges" -}}
{{- $otherChanges := index . "otherChanges" -}}
{{- with $tmplChanges -}}
### Templates
Expand All @@ -89,10 +88,6 @@ Hugo now has:
### Core
{{ template "change-section" . }}
{{- end -}}
{{- with $docsChanges -}}
### Docs
{{ template "change-section" . }}
{{- end -}}
{{- with $otherChanges -}}
### Other
{{ template "change-section" . }}
Expand Down
3 changes: 2 additions & 1 deletion releaser/releaser.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import (
"os/exec"
"path/filepath"
"regexp"
"strings"

"github.com/gohugoio/hugo/helpers"
)
Expand Down Expand Up @@ -84,7 +85,7 @@ func New(version string, step int, skipPublish, try bool) *ReleaseHandler {

if try {
rh.git = func(args ...string) (string, error) {
fmt.Println("git", args)
fmt.Println("git", strings.Join(args, " "))
return "", nil
}
} else {
Expand Down

0 comments on commit 4776840

Please sign in to comment.