[changelog]
header = """
# Changelog
"""
body = """
{%- macro remote_url() -%}
https://github.com/bahdotsh/feedr
{%- endmacro -%}
{% if version %}\
{% if previous.version %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% endif %}\
{% else %}\
## [Unreleased]
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits
| filter(attribute="scope")
| sort(attribute="scope") %}
- **({{commit.scope}})**: {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))
{%- if commit.breaking %}
{% raw %} {% endraw %}- **BREAKING**: {{ commit.breaking_description }}
{%- endif -%}
{%- endfor %}
{% for commit in commits %}
{%- if not commit.scope -%}
- {{ commit.message | upper_first }} ([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/commit/{{ commit.id }}))
{% if commit.breaking -%}
{% raw %} {% endraw %}- **BREAKING**: {{ commit.breaking_description }}
{% endif -%}
{%- endif -%}
{%- endfor -%}
{% raw %}
{% endraw %}\
{% endfor %}\
"""
footer = """
<!-- generated by git-cliff -->
"""
trim = true
[git]
conventional_commits = true
filter_unconventional = true
split_commits = false
commit_preprocessors = [
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/bahdotsh/feedr/issues/${2}))"},
{ pattern = '^\s*\n', replace = "" },
]
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->๐ Features" },
{ message = "^fix", group = "<!-- 1 -->๐ Bug Fixes" },
{ message = "^doc", group = "<!-- 3 -->๐ Documentation" },
{ message = "^perf", group = "<!-- 4 -->โก Performance" },
{ message = "^refactor", group = "<!-- 2 -->๐ Refactor" },
{ message = "^style", group = "<!-- 5 -->๐จ Styling" },
{ message = "^test", group = "<!-- 6 -->๐งช Testing" },
{ message = "^chore\\(release\\): prepare for", skip = true },
{ message = "^chore\\(deps.*\\)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
{ message = "^chore|^ci", group = "<!-- 7 -->โ๏ธ Miscellaneous Tasks" },
{ message = "^deps", group = "<!-- 8 -->๐ฆ Dependencies" },
{ message = "^build", group = "<!-- 9 -->๐๏ธ Build System" },
{ message = "^revert", group = "<!-- 10 -->โ๏ธ Revert" },
{ message = "^feed", group = "<!-- 0 -->๐ Features" },
{ message = "^ui", group = "<!-- 1 -->๐จ User Interface" },
{ message = "^filter", group = "<!-- 0 -->๐ Features" },
{ message = "^category", group = "<!-- 0 -->๐ Features" },
{ message = "^search", group = "<!-- 0 -->๐ Features" },
{ body = ".*security", group = "<!-- 1 -->๐ Security" },
{ message = ".*", group = "<!-- 7 -->โ๏ธ Miscellaneous Tasks" },
]
protect_breaking_commits = false
filter_commits = false
ignore_tags = ""
topo_order = false
sort_commits = "oldest"