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

View File

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

View File

@@ -8,10 +8,10 @@ TAG_QUERY=v11.0.0..
scope ?= "minor"
changelog-unrelease:
git-chglog -o $(CHANGELOG_FILE) $(TAG_QUERY)
git-chglog --no-case -o $(CHANGELOG_FILE) $(TAG_QUERY)
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:
$(SEMTAG) final -s $(scope)