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") }}
|
|
|
|
{% else %}
|
|
|
|
## [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-25 21:24:00 +03:00
|
|
|
- {{ commit.message }}\
|
|
|
|
{% 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 = """
|
|
|
|
<!-- generated by gitolith -->
|
|
|
|
"""
|
2021-05-23 22:00:40 +03:00
|
|
|
|
2021-05-25 20:39:14 +03:00
|
|
|
# regex patterns for grouping commits
|
2021-05-23 02:44:11 +03:00
|
|
|
group_parsers = [
|
|
|
|
{ regex = "feat*", group = "Features"},
|
|
|
|
{ regex = "fix*", group = "Bug Fixes"},
|
|
|
|
{ regex = "chore*", group = "Miscellaneous Tasks"},
|
|
|
|
]
|
2021-05-23 23:43:32 +03:00
|
|
|
|
2021-05-25 20:39:14 +03:00
|
|
|
# filter out the commits that are not matched by group_parsers
|
2021-05-23 23:43:32 +03:00
|
|
|
filter_group = false
|
2021-05-25 01:30:28 +03:00
|
|
|
|
2021-05-25 20:39:14 +03:00
|
|
|
# glob pattern for matching tags
|
2021-05-25 18:12:59 +03:00
|
|
|
tag_pattern = "v[0-9]*"
|