chore: improve generated changelog
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
e1fbc115d9
commit
b954ce51ec
@ -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 -}}
|
||||
|
13
.drone.yml
13
.drone.yml
@ -55,15 +55,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:
|
||||
@ -188,6 +195,6 @@ depends_on:
|
||||
|
||||
---
|
||||
kind: signature
|
||||
hmac: 54adfa120f98b9554b345128101ae4c8725bddb13a735fb879c748ec6fb482b4
|
||||
hmac: 32f47c4643a2e25175cb1bf7a78dd447c8a9083f53ca82493afc86685d2b2b61
|
||||
|
||||
...
|
||||
|
@ -1 +1,2 @@
|
||||
.drone.yml
|
||||
*.tpl.md
|
||||
|
Loading…
Reference in New Issue
Block a user