chore: improve generated changelog (#25)

This commit is contained in:
Robert Kaussow
2021-05-09 23:46:51 +02:00
committed by GitHub
parent 26339083ac
commit 7148b3d306
4 changed files with 24 additions and 6 deletions

View File

@@ -6,10 +6,14 @@
{{ range .CommitGroups -}}
### {{ .Title }}
{{ $subjects := list }}
{{ range .Commits -}}
{{ if not (has .Subject $subjects) -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{ $subjects = append $subjects .Subject -}}
{{ end }}
{{ end -}}
{{- end }}
{{- end -}}
{{- if .NoteGroups -}}
{{ range .NoteGroups -}}