-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathcliff.toml
More file actions
50 lines (46 loc) · 1.59 KB
/
cliff.toml
File metadata and controls
50 lines (46 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
[bump]
initial_tag = "v2.0.0"
[remote.github]
owner = "nais"
repo = "cli"
[changelog]
render_always = false
header = ""
body = """
{% if version %}
## {{ version }} - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}
## unreleased version
{% endif %}
{% if version and previous.version %}
Full Changelog: https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}/compare/{{ previous.version }}...{{ version }}
{% endif %}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}
- {% if commit.scope %}*({{ commit.scope }})* {% endif -%}
{% if commit.breaking %}:boom: **Breaking change:** {% endif -%}
{{ commit.message | upper_first }} \
{#
commit.remote.username is currently not set when on a branch / pull request. Can include this later if we
want to have this in the Changelog. If not, just remove the whole comment block.
{% if commit.remote.username -%}
by @{{ commit.remote.username }} \
{% endif -%}
-#}
({{ commit.id }})
{%- endfor %}
{% endfor %}
"""
footer = ""
[git]
conventional_commits = true
filter_unconventional = true
filter_commits = false
commit_parsers = [
{ message = "^feat", group = "<!-- 00 -->:rocket: Features"},
{ message = "^fix", group = "<!-- 01 -->:bug: Bug Fixes"},
{ message = "^style", group = "<!-- 02 -->:art: Styling"},
{ message = ".*", group = "<!-- 99 -->:gear: Miscellaneous Changes"},
]
tag_pattern = "^v[0-9]+\\.[0-9]+\\.[0-9]+$"