added chglog config

This commit is contained in:
Mia Rose Winter 2024-02-19 21:53:01 +01:00
parent 70a5fcf2a1
commit 10256c5bf3
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E
2 changed files with 55 additions and 0 deletions

22
.chglog/CHANGELOG.tpl.md Normal file
View file

@ -0,0 +1,22 @@
{{ range .Versions }}
## {{ .Tag.Name }} ({{ datetime "2006-01-02" .Tag.Date }})
{{ range .CommitGroups -}}
### {{ .Title }}
{{- $title := .Title }}
{{ range .Commits -}}
* {{ (replace (upperFirst .Subject) $title "" 1) | trim | upperFirst }}
{{ end }}
{{ end -}}
{{- if .NoteGroups -}}
{{ range .NoteGroups -}}
### {{ .Title }}
{{ range .Notes }}
{{ .Body }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

33
.chglog/config.yml Normal file
View file

@ -0,0 +1,33 @@
style: none
template: CHANGELOG.tpl.md
info:
title: CHANGELOG
repository_url: https://github.com/miawinter98/Wave
options:
tag_filter_pattern: '^(v|alpha-|beta-)'
issues:
prefix:
- '#'
commits:
filters:
Type:
- Added
- Changed
- fixed
- Implemented
- Improved
- Localized
commit_groups:
# title_maps:
# feat: Features
# fix: Bug Fixes
# perf: Performance Improvements
# refactor: Code Refactoring
header:
pattern: "^((\\w+)\\s.*)$"
pattern_maps:
- Subject
- Type
notes:
keywords:
- BREAKING CHANGE