docs: Update changelog generation to use custom sort with git-chglog v0.10.0 (#1202)

This commit is contained in:
Thierno IB. BARRY
2021-01-29 00:30:05 +01:00
committed by GitHub
parent 84a3761742
commit a8c402bb0e
3 changed files with 15 additions and 7 deletions

View File

@@ -13,14 +13,14 @@ project adheres to [Semantic Versioning](http://semver.org/).
{{ .Title }}: {{ .Title }}:
{{ range .Commits -}} {{ range .Commits -}}
{{- if .Subject -}} {{- if .Subject -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} - {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject | upperFirst }}
{{ end -}} {{ end -}}
{{ end }} {{ end }}
{{ end -}} {{ end -}}
{{ else }} {{ else }}
{{ range .Unreleased.Commits -}} {{ range .Unreleased.Commits -}}
{{- if .Subject -}} {{- if .Subject -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} - {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject | upperFirst}}
{{ end -}} {{ end -}}
{{ end }} {{ end }}
{{ end -}} {{ end -}}
@@ -43,14 +43,14 @@ project adheres to [Semantic Versioning](http://semver.org/).
{{ .Title }}: {{ .Title }}:
{{ range .Commits -}} {{ range .Commits -}}
{{- if .Subject -}} {{- if .Subject -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} - {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject | upperFirst }}
{{ end -}} {{ end -}}
{{ end }} {{ end }}
{{ end -}} {{ end -}}
{{ else }} {{ else }}
{{ range .Commits -}} {{ range .Commits -}}
{{- if .Subject -}} {{- if .Subject -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} - {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject | upperFirst }}
{{ end -}} {{ end -}}
{{ end }} {{ end }}
{{ end -}} {{ end -}}

View File

@@ -18,7 +18,15 @@ options:
commit_groups: commit_groups:
group_by: Type group_by: Type
sort_by: Type sort_by: Custom
title_order:
- feat
- improvement
- refactor
- fix
- docs
- test
- ci
title_maps: title_maps:
feat: FEATURES feat: FEATURES
fix: BUG FIXES fix: BUG FIXES

View File

@@ -8,10 +8,10 @@ TAG_QUERY=v11.0.0..
scope ?= "minor" scope ?= "minor"
changelog-unrelease: changelog-unrelease:
git-chglog -o $(CHANGELOG_FILE) $(TAG_QUERY) git-chglog --no-case -o $(CHANGELOG_FILE) $(TAG_QUERY)
changelog: changelog:
git-chglog -o $(CHANGELOG_FILE) --next-tag `$(SEMTAG) final -s $(scope) -o -f` $(TAG_QUERY) git-chglog --no-case -o $(CHANGELOG_FILE) --next-tag `$(SEMTAG) final -s $(scope) -o -f` $(TAG_QUERY)
release: release:
$(SEMTAG) final -s $(scope) $(SEMTAG) final -s $(scope)