1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-11-29 17:23:22 +03:00
git-cliff/gitolith.toml

45 lines
1.1 KiB
TOML
Raw Normal View History

[changelog]
2021-05-25 20:39:14 +03:00
# changelog header
header = """
# Changelog
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-25 20:39:14 +03:00
# template for the changelog body
# https://tera.netlify.app/docs/#introduction
body = """
{% if version %}\
## [{{ version | replace(from="v", to="") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}
## [unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | capitalize}}
{% for commit in commits %}
- {{ commit.message }}\
{% endfor %}
{% endfor %}
"""
2021-05-25 20:39:14 +03:00
# changelog footer
footer = """
<!-- generated by gitolith -->
"""
2021-05-25 20:39:14 +03:00
# regex patterns for grouping commits
group_parsers = [
{ regex = "feat*", group = "Features"},
{ regex = "fix*", group = "Bug Fixes"},
{ regex = "chore*", group = "Miscellaneous Tasks"},
]
2021-05-25 20:39:14 +03:00
# filter out the commits that are not matched by group_parsers
filter_group = false
2021-05-25 20:39:14 +03:00
# glob pattern for matching tags
tag_pattern = "v[0-9]*"