From 2107dfdaeeea7b42f59018fba26a960e36c88dd1 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 22 Sep 2021 11:48:51 +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 -}}