[changelog]
header = """
# Changelog\n
All notable changes to this project will be documented in this file.\n
"""
body = """
---\n
{% if version %}\
## {{ version | trim_start_matches(pat="v") }} - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## Unreleased
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% raw %}\n{% endraw %}\
{%- for commit in commits %}\
{% if commit.remote.pr_title -%}
{%- set commit_message = commit.remote.pr_title -%}
{%- else -%}
{%- set commit_message = commit.message -%}
{%- endif -%}
- {{ commit_message | split(pat="\n") | first | upper_first }}\
{% if commit.remote.pr_number %} \
([#{{ commit.remote.pr_number }}]({{ self::remote_url() }}/pull/{{ commit.remote.pr_number }})) \
{%- endif %}
{% if commit.breaking -%}
{% raw %} {% endraw %}- **BREAKING**: {{commit.breaking_description}}
{% endif -%}
{% endfor -%}
{% endfor %}
{%- if github -%}
{%- set contributors = github.contributors | filter(attribute="username") -%}
{% if contributors | length != 0 %}
### ๐งโ๐คโ๐ง Contributors
{% raw %}{% endraw %}\
{%- endif %}\
{% for contributor in contributors %}
{% if contributor.username != 'dependabot[bot]' %}\
* [@{{ contributor.username }}](https://github.com/{{ contributor.username }})
{%- endif %}
{%- endfor -%}
{%- endif -%}
{% if version %}
{% if previous.version %}\
**Full Changelog**: <{{ self::remote_url() }}/compare/{{ previous.version }}...{{ version }}>
{% endif %}
{% else -%}
{% endif %}
{%- macro remote_url() -%}
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%}
"""
footer = """
<!-- generated by git-cliff -->
"""
trim = true
postprocessors = []
output = "CHANGELOG.md"
[git]
conventional_commits = false
filter_unconventional = false
split_commits = false
commit_preprocessors = [
]
commit_parsers = [
{ field = "github.pr_labels", pattern = "breaking-change", group = "<!-- 0 --> ๐๏ธ Breaking changes" },
{ field = "github.pr_labels", pattern = "enhancement", group = "<!-- 1 --> ๐ Features" },
{ field = "github.pr_labels", pattern = "bug", group = "<!-- 2 --> ๐ Fixes" },
{ field = "github.pr_labels", pattern = "documentation", group = "<!-- 3 --> ๐ Documentation" },
{ field = "github.pr_labels", pattern = "dependencies", group = "<!-- 4 --> ๐งช Dependencies" },
{ field = "github.pr_labels", pattern = ".*", group = "<!-- 5 --> ๐ Miscellaneous" },
]
filter_commits = false
topo_order = false
sort_commits = "newest"
[remote.github]
owner = "SunDoge"
repo = "dlpark"
token = ""