-
Notifications
You must be signed in to change notification settings - Fork 174
Expand file tree
/
Copy path.git-cliff.toml
More file actions
53 lines (45 loc) · 1.38 KB
/
.git-cliff.toml
File metadata and controls
53 lines (45 loc) · 1.38 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
51
52
53
[changelog]
header = "# Convoy Changes\n\n"
body = """
## {{ version | trim_start_matches(pat="v") }}
{% set features = commits | filter(attribute="group", value="Features") %}
{% if features | length > 0 -%}
### Features
{% for commit in features -%}
- {{ commit.message | split(pat="\n") | first }}
{% endfor %}
{%- endif -%}
{% set improvements = commits | filter(attribute="group", value="Improvements") %}
{% if improvements | length > 0 -%}
### Improvements
{% for commit in improvements -%}
- {{ commit.message | split(pat="\n") | first }}
{% endfor %}
{%- endif -%}
{% set bug_fixes = commits | filter(attribute="group", value="Bug Fixes") %}
{% if bug_fixes | length > 0 -%}
### Bug Fixes
{% for commit in bug_fixes -%}
- {{ commit.message | split(pat="\n") | first }}
{% endfor %}
{%- endif -%}
{% set others = commits | filter(attribute="group", value="Others") %}
{% if others | length > 0 -%}
### Others
{% for commit in others -%}
- {{ commit.message | split(pat="\n") | first }}
{% endfor %}
{% endif -%}
"""
trim = true
[git]
conventional_commits = false
filter_unconventional = false
tag_pattern = "^v\\d+\\.\\d+\\.\\d+$"
sort_commits = "oldest"
commit_parsers = [
{ message = "^feat", group = "Features" },
{ message = "^(fix|bugfix)", group = "Bug Fixes" },
{ message = "^(perf|refactor|chore|build|ci|docs|test)", group = "Improvements" },
{ message = ".*", group = "Others" },
]