cliff.toml 1.5 K raw
1
[changelog]
2
header = """
3
# Changelog\n
4
All notable changes to this project will be documented in this file.\n
5
"""
6
body = """
7
{%- macro remote_url() -%}
8
  https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
9
{%- endmacro -%}
10
11
{% if version -%}
12
    ## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
13
{% else -%}
14
    ## [Unreleased]
15
{% endif -%}
16
17
{% for group, commits in commits | group_by(attribute="group") %}
18
    ### {{ group | striptags | trim | upper_first }}
19
    {% for commit in commits %}
20
        - {% if commit.scope %}*({{ commit.scope }})* {% endif %}{% if commit.breaking %}[**breaking**] {% endif %}{{ commit.message | upper_first }}\
21
    {% endfor %}
22
{% endfor %}\n
23
"""
24
trim = true
25
26
[git]
27
conventional_commits = true
28
filter_unconventional = true
29
split_commits = false
30
commit_parsers = [
31
    { message = "^feat", group = "Features" },
32
    { message = "^fix", group = "Bug Fixes" },
33
    { message = "^docs", group = "Documentation" },
34
    { message = "^perf", group = "Performance" },
35
    { message = "^refactor", group = "Refactoring" },
36
    { message = "^style", group = "Styling" },
37
    { message = "^test", group = "Testing" },
38
    { message = "^chore\\(release\\)", skip = true },
39
    { message = "^chore\\(deps\\)", skip = true },
40
    { message = "^chore|^ci", group = "Miscellaneous" },
41
]
42
protect_breaking_commits = false
43
filter_commits = false
44
topo_order_commits = false
45
sort_commits = "oldest"
46
47
[remote.github]
48
owner = "stevedylandev"
49
repo = "sipp"