-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcliff.toml
More file actions
69 lines (58 loc) · 2.16 KB
/
Copy pathcliff.toml
File metadata and controls
69 lines (58 loc) · 2.16 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# git-cliff configuration.
# See https://git-cliff.org/docs/configuration/
[changelog]
body = """
{% if version -%}
<a name="{{ version }}"></a>
## {% if previous.version %}[{{ version }}](https://github.com/vatesfr/xenorchestra-csi-driver/compare/{{ previous.version }}...{{ version }}){% else %}{{ version }}{% endif %} ({{ timestamp | date(format="%Y-%m-%d") }})
Welcome to the {{ version }} release of Kubernetes CSI driver for Xen Orchestra!
{% else -%}
<a name="unreleased"></a>
## Unreleased
{% endif -%}
{% set fixes = commits | filter(attribute="group", value="Bug Fixes") -%}
{% if fixes | length > 0 -%}
### Bug Fixes
{% for commit in fixes -%}
- {% if commit.scope %}**{{ commit.scope }}:** {% endif %}{{ commit.message | replace(from="\n", to=" ") | replace(from="fix: ", to="") }}
{% endfor -%}
{% endif -%}
{% set features = commits | filter(attribute="group", value="Features") -%}
{% if features | length > 0 %}
### Features
{% for commit in features -%}
- {% if commit.scope %}**{{ commit.scope }}:** {% endif %}{{ commit.message | replace(from="\n", to=" ") | replace(from="feat: ", to="") }}
{% endfor -%}
{% endif %}
### Changelog
{% for commit in commits -%}
* {{ commit.id | truncate(length=7, end="") }} {{ commit.raw_message | split(pat="\n\n") | first | replace(from="\n", to=" ") }}
{% endfor -%}
{% set breaking = commits | filter(attribute="breaking", value=true) -%}
{% if breaking | length > 0 %}
### BREAKING CHANGE
{% for commit in breaking -%}
{{ commit.breaking_description }}
{% endfor %}
{% endif %}
"""
trim = true
[git]
conventional_commits = true
filter_unconventional = false
require_conventional = false
split_commits = false
protect_breaking_commits = true
tag_pattern = '^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)[-+]?[0-9A-Za-z-+.]*$'
sort_commits = "newest"
commit_parsers = [
{ message = "^Merge", skip = true },
{ message = "^Revert", skip = true },
{ message = "^revert", skip = true },
{ message = "^Reapply", skip = true },
{ message = "^Add:", skip = true },
{ message = "^First commit", skip = true },
{ message = "^feat", group = "Features" },
{ message = "^fix", group = "Bug Fixes" },
{ message = ".*", group = "Changelog" },
]