diff options
author | lovetox <philipp@hoerist.com> | 2022-05-17 22:17:28 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2022-05-17 22:17:38 +0300 |
commit | 597297c2729aa8a27add0141c747d4012ac1bc77 (patch) | |
tree | 6e51132aef2e01234c28e6fe89b91e4472151891 /.chglog | |
parent | 9d3e996dd14bdb4c8b6deba12ec0d9c22eb6c5c5 (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 000000000..3e8b9c2d2 --- /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 000000000..2cf804ec7 --- /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/gajim +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 |