chore: improve generated changelog
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Robert Kaussow 2021-05-09 22:42:32 +02:00
parent 1947ce2cb9
commit 907e676ba0
No known key found for this signature in database
GPG Key ID: 65362AE74AF98B61
3 changed files with 16 additions and 4 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 -}}

View File

@ -57,15 +57,22 @@ steps:
depends_on:
- dryrun
- name: changelog
- name: changelog-generate
image: thegeeklab/git-chglog
commands:
- git fetch -tq
- git-chglog --no-color --no-emoji ${DRONE_TAG:---next-tag unreleased unreleased}
- git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased unreleased}
depends_on:
- tags
- name: changelog-format
image: thegeeklab/alpine-tools
commands:
- prettier CHANGELOG.md
- prettier -w CHANGELOG.md
depends_on:
- changelog-generate
- name: publish-dockerhub
image: thegeeklab/drone-docker-buildx:20
settings:
@ -194,6 +201,6 @@ depends_on:
---
kind: signature
hmac: 076912fdb7964ab4069e636ac820b778695f3ec2804347de37c02ac27d92318b
hmac: 2243a9a6d2bb6ec4974a4abcd81ad1d887b9837cc8675ceee34e6d29302a5311
...

View File

@ -1 +1,2 @@
.drone.yml
*.tpl.md