From f3f4f0e544488a3ec6eb6fb61815742af1e64a26 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 22 Sep 2021 11:48:48 +0200 Subject: [PATCH] improve changelog template --- .chglog/CHANGELOG.tpl.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.chglog/CHANGELOG.tpl.md b/.chglog/CHANGELOG.tpl.md index 3f7457d..4d6bff8 100755 --- a/.chglog/CHANGELOG.tpl.md +++ b/.chglog/CHANGELOG.tpl.md @@ -6,13 +6,9 @@ {{ range .CommitGroups -}} ### {{ .Title }} -{{ $subjects := list }} {{ range .Commits -}} -{{ if not (has .Subject $subjects) -}} -- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} -{{ $subjects = append $subjects .Subject -}} +- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ (regexReplaceAll "(Co-\\w*-by.*)" .Subject "") | trim }} {{ end }} -{{- end }} {{- end -}} {{- if .NoteGroups -}}