From 1a9618da670441133657c06d2bb6357af353ea38 Mon Sep 17 00:00:00 2001 From: Ralf Kirchner Date: Thu, 29 May 2025 15:19:43 +0200 Subject: [PATCH] .chglog/CHANGELOG.tpl.md aktualisiert --- .chglog/CHANGELOG.tpl.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) 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 }}