From 52a2ce784752fa26a0f51b4c451fe7f613f1e9d2 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 22 Sep 2021 11:45:41 +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 -}}