From 89c7fef7d204f531c306d8e6afa7685b34278bab Mon Sep 17 00:00:00 2001 From: Ralf Kirchner Date: Thu, 29 May 2025 15:11:02 +0200 Subject: [PATCH] .chglog/CHANGELOG.tpl.md aktualisiert --- .chglog/CHANGELOG.tpl.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.chglog/CHANGELOG.tpl.md b/.chglog/CHANGELOG.tpl.md index feb452a..93c1d8e 100755 --- a/.chglog/CHANGELOG.tpl.md +++ b/.chglog/CHANGELOG.tpl.md @@ -7,7 +7,8 @@ {{ range .Commits -}} {{ $hash := printf "%s" .Hash }} -* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} ([{{ slice $hash 0 7 }}]({{ $.Info.RepositoryURL }}/commit/{{ $hash }})) +{{ $short := (print (index $hash 0) (index $hash 1) (index $hash 2) (index $hash 3) (index $hash 4) (index $hash 5) (index $hash 6)) }} +* {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} ([{{ $short }}]({{ $.Info.RepositoryURL }}/commit/{{ $hash }})) {{ end }} {{ end }} @@ -16,7 +17,8 @@ {{ range .RevertCommits -}} {{ $hash := printf "%s" .Hash }} -* {{ .Revert.Header }} ([{{ slice $hash 0 7 }}]({{ $.Info.RepositoryURL }}/commit/{{ $hash }})) +{{ $short := (print (index $hash 0) (index $hash 1) (index $hash 2) (index $hash 3) (index $hash 4) (index $hash 5) (index $hash 6)) }} +* {{ .Revert.Header }} ([{{ $short }}]({{ $.Info.RepositoryURL }}/commit/{{ $hash }})) {{ end }} {{ end }} @@ -25,7 +27,8 @@ {{ range .MergeCommits -}} {{ $hash := printf "%s" .Hash }} -* {{ .Header }} ([{{ slice $hash 0 7 }}]({{ $.Info.RepositoryURL }}/commit/{{ $hash }})) +{{ $short := (print (index $hash 0) (index $hash 1) (index $hash 2) (index $hash 3) (index $hash 4) (index $hash 5) (index $hash 6)) }} +* {{ .Header }} ([{{ $short }}]({{ $.Info.RepositoryURL }}/commit/{{ $hash }})) {{ end }} {{ end }}