diff --git a/.chglog/CHANGELOG.tpl.md b/.chglog/CHANGELOG.tpl.md index 11a7970..8fb0e6c 100755 --- a/.chglog/CHANGELOG.tpl.md +++ b/.chglog/CHANGELOG.tpl.md @@ -6,9 +6,7 @@ ### {{ .Title }} {{ range .Commits -}} -{{ $hash := .Hash }} -{{ $short := printf "%.7s" $hash }} -* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} ({{ $short }}) +* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} ({{ slice .Hash.String 0 7 }}) {{ end }} {{ end }} @@ -16,9 +14,7 @@ ### Reverts {{ range .RevertCommits -}} -{{ $hash := .Hash }} -{{ $short := printf "%.7s" $hash }} -* {{ .Revert.Header }} ({{ $short }}) +* {{ .Revert.Header }} ({{ slice .Hash.String 0 7 }}) {{ end }} {{ end }} @@ -26,9 +22,7 @@ ### Pull Requests {{ range .MergeCommits -}} -{{ $hash := .Hash }} -{{ $short := printf "%.7s" $hash }} -* {{ .Header }} ({{ $short }}) +* {{ .Header }} ({{ slice .Hash.String 0 7 }}) {{ end }} {{ end }}