[changelog]
header = """
# Blockdev Changelog\n
All notable changes to this project will be documented in this file.\n
"""
body = """
{%- macro remote_url() -%}
https://github.com/wiggels/blockdev
{%- endmacro -%}
{% macro print_commit(commit) -%}
{% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | split(pat="\n") | first | upper_first }} \
([{{ commit.id | truncate(length=7, end="") }}]({{ self::remote_url() }}/-/commit/{{ commit.id }}))
{% endmacro -%}
{%- if version %}
{% if previous.version %}\
## [{{ version | trim_start_matches(pat="v") }}]\
({{ self::remote_url() }}/-/compare/{{ previous.version }}..{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [{{ version | trim_start_matches(pat="v") }}]\
({{ self::remote_url() }}/-/commits/{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }}
{% endif %}
{% else %}\
## [unreleased]
{% endif -%}
{% for group, commits in commits | group_by(attribute="group") %}\
{% for commit in commits %}\
- {{ group | striptags }} {{ self::print_commit(commit=commit) }}\
{% endfor -%}
{% endfor %}
"""
footer = """
<!-- generated by git-cliff -->
"""
trim = true
postprocessors = [
]
output = "CHANGELOG.md"
[git]
conventional_commits = true
filter_unconventional = false
split_commits = false
commit_preprocessors = [
{ pattern = "\\w+\\(([A-Z]+-[0-9]+)\\)[: -]*", replace = "$1 " },
{ pattern = "([A-Z]+-[0-9]+)([: -]+)", replace = "${1} " },
]
commit_parsers = [
{ message = "^Merge", skip = true },
{ message = "(?i)feat", group = "<!-- 0 -->โฐ๏ธ" },
{ message = "(?i)security|audit|RUSTSEC|advisory", group = "<!-- 0 -->๐ก๏ธ" },
{ body = "(?i).*security", group = "<!-- 0 -->๐ก๏ธ" },
{ message = "(?i)revert", group = "<!-- 0 -->โฉ๏ธ" },
{ message = "(?i)refactor|lint|clippy", group = "<!-- 0 -->๐" },
{ message = "(?i)test|coverage", group = "<!-- 0 -->๐งช" },
{ message = "(?i)\\<ci\\>|gitlab", group = "<!-- 0 -->๐ฆ" },
{ message = "(?i)dependenc(y|ies)|package|rust|cargo|crate|bump.*rust", group = "<!-- 0 -->๐ฆ" },
{ message = "(?i)doc", group = "<!-- 0 -->๐" },
{ message = "(?i)perf", group = "<!-- 0 -->๐๏ธ" },
{ message = "(?i)style", group = "<!-- 0 -->๐จ" },
{ message = "(?i)fix", group = "<!-- 0 -->๐" },
{ message = ".*", group = "<!-- 0 -->๐๏ธ" },
]
filter_commits = false
topo_order = false
sort_commits = "newest"
use_branch_tags = false