[changelog]
header = """## Changelog
"""
body = """
{% if version %}\
{% if previous %}\
### [{{ version }}](https://github.com/PurpleBooth/mit-commit/compare/{{ previous.version }}...{{ version }}) ({{ timestamp | date(format="%Y-%m-%d") }})
{% else %}\
### [{{ version }}](https://github.com/PurpleBooth/mit-commit/tree/{{ version }}) ({{ timestamp | date(format="%Y-%m-%d") }})
{% endif %}\
{% else %}\
### [unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}
- {% if commit.breaking %}**Breaking Change:** {% endif %}{{ commit.message | upper_first }} ([`{{ commit.id | truncate(length=7, end="") }}`](https://github.com/PurpleBooth/mit-commit/commit/{{ commit.id }}))\
{% endfor %}
{% endfor %}\n
"""
trim = true
[git]
conventional_commits = true
tag_pattern = "v[0-9]*"