mirror of
https://github.com/thegeeklab/url-parser.git
synced 2024-11-24 14:10:39 +00:00
chore: improve generated changelog (#10)
This commit is contained in:
parent
ce913f83b9
commit
c7a5cbb700
@ -6,10 +6,14 @@
|
|||||||
{{ range .CommitGroups -}}
|
{{ range .CommitGroups -}}
|
||||||
### {{ .Title }}
|
### {{ .Title }}
|
||||||
|
|
||||||
|
{{ $subjects := list }}
|
||||||
{{ range .Commits -}}
|
{{ range .Commits -}}
|
||||||
|
{{ if not (has .Subject $subjects) -}}
|
||||||
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
|
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
|
||||||
|
{{ $subjects = append $subjects .Subject -}}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end -}}
|
{{- end }}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{- if .NoteGroups -}}
|
{{- if .NoteGroups -}}
|
||||||
{{ range .NoteGroups -}}
|
{{ range .NoteGroups -}}
|
||||||
|
@ -128,14 +128,21 @@ local PipelineBuildBinaries = {
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'changelog',
|
name: 'changelog-generate',
|
||||||
image: 'thegeeklab/git-chglog',
|
image: 'thegeeklab/git-chglog',
|
||||||
commands: [
|
commands: [
|
||||||
'git fetch -tq',
|
'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}',
|
'git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased unreleased}',
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'changelog-format',
|
||||||
|
image: 'thegeeklab/alpine-tools',
|
||||||
|
commands: [
|
||||||
|
'prettier CHANGELOG.md',
|
||||||
|
'prettier -w CHANGELOG.md',
|
||||||
|
],
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'publish',
|
name: 'publish',
|
||||||
image: 'plugins/github-release',
|
image: 'plugins/github-release',
|
||||||
|
11
.drone.yml
11
.drone.yml
@ -95,13 +95,18 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- cd release/ && sha256sum * > sha256sum.txt
|
- cd release/ && sha256sum * > sha256sum.txt
|
||||||
|
|
||||||
- name: changelog
|
- name: changelog-generate
|
||||||
image: thegeeklab/git-chglog
|
image: thegeeklab/git-chglog
|
||||||
commands:
|
commands:
|
||||||
- git fetch -tq
|
- 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}
|
- git-chglog --no-color --no-emoji -o CHANGELOG.md ${DRONE_TAG:---next-tag unreleased unreleased}
|
||||||
|
|
||||||
|
- name: changelog-format
|
||||||
|
image: thegeeklab/alpine-tools
|
||||||
|
commands:
|
||||||
|
- prettier CHANGELOG.md
|
||||||
|
- prettier -w CHANGELOG.md
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: plugins/github-release
|
image: plugins/github-release
|
||||||
settings:
|
settings:
|
||||||
@ -170,6 +175,6 @@ depends_on:
|
|||||||
|
|
||||||
---
|
---
|
||||||
kind: signature
|
kind: signature
|
||||||
hmac: 1239306894f7ac21f758e71cb72714ae295239b89199a74b4fbf755d9c6c2fea
|
hmac: ea0f25d6b420728bb13c4500ee174e43f64ce6fcf5f09bd7545142f560ff8b8b
|
||||||
|
|
||||||
...
|
...
|
||||||
|
2
.prettierignore
Normal file
2
.prettierignore
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
.drone.yml
|
||||||
|
*.tpl.md
|
Loading…
Reference in New Issue
Block a user