Project: Add changelog generation task in Makefile

Use `make changelog` to generate `CHANGELOG.md`.

Uses `git-chglog` under the hood (you must install it first).

See https://github.com/git-chglog/git-chglog for more informations.
This commit is contained in:
wpetit 2019-07-04 09:16:25 +02:00
parent 0028b0d8c4
commit 034ac3095f
4 changed files with 63 additions and 0 deletions

21
.chglog/CHANGELOG.tpl.md Executable file
View File

@ -0,0 +1,21 @@
{{ range .Versions }}
## {{ .Tag.Name }} ({{ datetime "2006-01-02" .Tag.Date }})
{{ range .CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
* {{ .Subject }}
{{ end }}
{{ end -}}
{{- if .NoteGroups -}}
{{ range .NoteGroups -}}
### {{ .Title }}
{{ range .Notes }}
{{ .Body }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

27
.chglog/config.yml Executable file
View File

@ -0,0 +1,27 @@
style: none
template: CHANGELOG.tpl.md
info:
title: CHANGELOG
repository_url: https://forge.cadoles.com/Pyxis/fieldnotes
options:
commits:
# filters:
# Type:
# - feat
# - fix
# - perf
# - refactor
commit_groups:
# title_maps:
# feat: Features
# fix: Bug Fixes
# perf: Performance Improvements
# refactor: Code Refactoring
header:
pattern: "^(\\w*)\\:\\s(.*)$"
pattern_maps:
- Type
- Subject
notes:
keywords:
- BREAKING CHANGE

12
CHANGELOG.md Normal file
View File

@ -0,0 +1,12 @@
## develop (2019-07-04)
### CI
* Do no use BUILD_ID in APK versionCode generation
* disable unit tests for now
### Map
* fit to site

View File

@ -67,6 +67,9 @@ clear:
rm -rf /tmp/metro-bundler-cache-*
rm -rf /tmp/haste-map-react-native-packager-*
changelog:
git-chglog --next-tag develop > CHANGELOG.md
new-keystore:
keytool -genkey -noprompt \
-alias fieldnotes \