2021-05-16 23:12:12 +03:00
|
|
|
[changelog]
|
2021-05-25 20:39:14 +03:00
|
|
|
# changelog header
|
2021-05-16 23:12:12 +03:00
|
|
|
header = """
|
|
|
|
# Changelog
|
2021-05-25 21:24:00 +03:00
|
|
|
|
2021-05-16 23:12:12 +03:00
|
|
|
All notable changes to this project will be documented in this file.
|
|
|
|
|
|
|
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
|
"""
|
2021-05-23 21:50:38 +03:00
|
|
|
|
2021-05-25 20:39:14 +03:00
|
|
|
# template for the changelog body
|
|
|
|
# https://tera.netlify.app/docs/#introduction
|
2021-05-23 21:50:38 +03:00
|
|
|
body = """
|
2021-05-25 21:24:00 +03:00
|
|
|
{% if version %}\
|
|
|
|
## [{{ version | replace(from="v", to="") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
|
2021-05-25 23:36:42 +03:00
|
|
|
{% else %}\
|
2021-05-25 21:24:00 +03:00
|
|
|
## [unreleased]
|
|
|
|
{% endif %}\
|
2021-05-23 21:50:38 +03:00
|
|
|
{% for group, commits in commits | group_by(attribute="group") %}
|
|
|
|
### {{ group | capitalize}}
|
|
|
|
{% for commit in commits %}
|
2021-05-26 00:02:24 +03:00
|
|
|
- {{ commit.message | capitalize_first }}\
|
2021-05-25 21:24:00 +03:00
|
|
|
{% endfor %}
|
2021-05-23 21:50:38 +03:00
|
|
|
{% endfor %}
|
|
|
|
"""
|
|
|
|
|
2021-05-25 20:39:14 +03:00
|
|
|
# changelog footer
|
2021-05-25 21:24:00 +03:00
|
|
|
footer = """
|
2021-05-30 01:45:03 +03:00
|
|
|
<!-- generated by git-cliff -->
|
2021-05-25 21:24:00 +03:00
|
|
|
"""
|
2021-05-23 22:00:40 +03:00
|
|
|
|
2021-05-29 19:32:34 +03:00
|
|
|
# regex for parsing and grouping commits
|
|
|
|
commit_parsers = [
|
2021-05-23 02:44:11 +03:00
|
|
|
{ regex = "feat*", group = "Features"},
|
|
|
|
{ regex = "fix*", group = "Bug Fixes"},
|
2021-05-29 19:45:30 +03:00
|
|
|
{ regex = "chore: Prepare*", skip = true},
|
2021-05-23 02:44:11 +03:00
|
|
|
{ regex = "chore*", group = "Miscellaneous Tasks"},
|
|
|
|
]
|
2021-05-23 23:43:32 +03:00
|
|
|
|
2021-05-29 19:32:34 +03:00
|
|
|
# filter out the commits that are not matched by commit parsers
|
2021-05-23 23:43:32 +03:00
|
|
|
filter_group = false
|
2021-05-25 01:30:28 +03:00
|
|
|
|
2021-05-29 00:21:16 +03:00
|
|
|
# glob pattern for matching git tags
|
|
|
|
git_tag_pattern = "v[0-9]*"
|
|
|
|
|
|
|
|
# regex for skipping tags
|
|
|
|
skip_tags_regex = "v0.1.0"
|