diff options
author | lovetox <philipp@hoerist.com> | 2022-05-18 21:09:52 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2022-05-18 21:09:52 +0300 |
commit | 2b49dccacb4a300ddfde17760f4a207fc4a63cb9 (patch) | |
tree | 609df6c04550c78aad862506eb41b526bf8c7a73 /.chglog | |
parent | e81b1dae9f197ca3bc7ffee95c7e2d6e8ec1fc19 (diff) |
chore: Add config files for git-chglog
Diffstat (limited to '.chglog')
-rwxr-xr-x | .chglog/CHANGELOG.tpl.md | 44 | ||||
-rwxr-xr-x | .chglog/config.yml | 33 |
2 files changed, 77 insertions, 0 deletions
diff --git a/.chglog/CHANGELOG.tpl.md b/.chglog/CHANGELOG.tpl.md new file mode 100755 index 0000000..3e8b9c2 --- /dev/null +++ b/.chglog/CHANGELOG.tpl.md @@ -0,0 +1,44 @@ +{{ if .Versions -}} +<a name="unreleased"></a> +## [Unreleased] + +{{ if .Unreleased.CommitGroups -}} +{{ range .Unreleased.CommitGroups -}} +{{ .Title }} + +{{ range .Commits -}} + * {{if .Refs}}{{range .Refs}}#{{.Ref}} {{end}}{{end}}{{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} +{{ end }} +{{ end -}} +{{ end -}} +{{ end -}} + + +{{ range .Versions }} +<a name="{{ .Tag.Name }}"></a> +## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }} +{{ range .CommitGroups -}} +{{ .Title }} +{{ range .Commits -}} + * {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }} +{{ end }} +{{ end -}} + +{{- if .NoteGroups -}} +{{ range .NoteGroups -}} +{{ .Title }} +{{ range .Notes }} +{{ .Body }} +{{ end }} +{{ end -}} +{{ end -}} +{{ end -}} + +{{- if .Versions }} +[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD +{{ range .Versions -}} +{{ if .Tag.Previous -}} +[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }} +{{ end -}} +{{ end -}} +{{ end -}}
\ No newline at end of file diff --git a/.chglog/config.yml b/.chglog/config.yml new file mode 100755 index 0000000..c76bf16 --- /dev/null +++ b/.chglog/config.yml @@ -0,0 +1,33 @@ +style: gitlab +template: CHANGELOG.tpl.md +info: + title: CHANGELOG + repository_url: https://dev.gajim.org/gajim/python-nbxmpp +options: + commits: + filters: + Type: + - feat + - perf + - fix + commit_groups: + sort_by: Custom + title_order: + - feat + - perf + - fix + title_maps: + feat: New + perf: Performance Improvements + fix: Bug Fixes + header: + pattern: "^(\\w*)\\:\\s(.*)$" + pattern_maps: + - Type + - Subject + issues: + prefix: + - "#" + refs: + actions: + - Fixes |