Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit 41627df

Browse files
committed
improve changelog template
1 parent 0f8af69 commit 41627df

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.chglog/CHANGELOG.tpl.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,9 @@
66
{{ range .CommitGroups -}}
77
### {{ .Title }}
88

9-
{{ $subjects := list }}
109
{{ range .Commits -}}
11-
{{ if not (has .Subject $subjects) -}}
12-
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
13-
{{ $subjects = append $subjects .Subject -}}
10+
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ (regexReplaceAll "(Co-\\w*-by.*)" .Subject "") | trim }}
1411
{{ end }}
15-
{{- end }}
1612
{{- end -}}
1713

1814
{{- if .NoteGroups -}}

0 commit comments

Comments
 (0)