From 949734db937a2c09b8e0608f869af8f816651985 Mon Sep 17 00:00:00 2001 From: Ralf Kirchner Date: Thu, 29 May 2025 15:13:57 +0200 Subject: [PATCH] .chglog/CHANGELOG.tpl.md aktualisiert --- .chglog/CHANGELOG.tpl.md | 45 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/.chglog/CHANGELOG.tpl.md b/.chglog/CHANGELOG.tpl.md index 095e5af..93c1d8e 100755 --- a/.chglog/CHANGELOG.tpl.md +++ b/.chglog/CHANGELOG.tpl.md @@ -1 +1,44 @@ -des \ No newline at end of file +{{ with index .Versions 0 }} + +## {{ if .Tag.Previous }}[{{ .Tag.Name }}]({{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}){{ else }}{{ .Tag.Name }}{{ end }} ({{ datetime "2006-01-02" .Tag.Date }}) + +{{ range .CommitGroups -}} +### {{ .Title }} + +{{ range .Commits -}} +{{ $hash := printf "%s" .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 }} + +{{- if .RevertCommits -}} +### Reverts + +{{ range .RevertCommits -}} +{{ $hash := printf "%s" .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 }} + +{{- if .MergeCommits -}} +### Pull Requests + +{{ range .MergeCommits -}} +{{ $hash := printf "%s" .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 }} + +{{- if .NoteGroups -}} +{{ range .NoteGroups -}} +### {{ .Title }} + +{{ range .Notes }} +{{ .Body }} +{{ end }} +{{ end }} +{{ end }} +{{ end }}