-
Notifications
You must be signed in to change notification settings - Fork 149
Expand file tree
/
Copy pathcliff.toml
More file actions
98 lines (85 loc) · 3.17 KB
/
Copy pathcliff.toml
File metadata and controls
98 lines (85 loc) · 3.17 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[changelog]
header = """
# Changelog
All notable changes to this project will be documented in this file.
"""
<<<<<<< HEAD
body = """
{% for release in releases %}
## [{% if release.version %}{{ release.version }}{% else %}Unreleased{% endif %}]{% if release.timestamp %} - {{ release.timestamp | date(format=\"%Y-%m-%d\") }}{% endif %}
### Added
{% for commit in release.commits %}
{% if commit.group == "Added" %}
- {% if commit.scope %}**{{ commit.scope }}:** {% endif %}{{ commit.message | upper_first }}
{% endif %}
{% endfor %}
### Fixed
{% for commit in release.commits %}
{% if commit.group == "Fixed" %}
- {% if commit.scope %}**{{ commit.scope }}:** {% endif %}{{ commit.message | upper_first }}
{% endif %}
{% endfor %}
### Changed
{% for commit in release.commits %}
{% if commit.group == "Changed" %}
- {% if commit.scope %}**{{ commit.scope }}:** {% endif %}{{ commit.message | upper_first }}
{% endif %}
{% endfor %}
### Deprecated
{% for commit in release.commits %}
{% if commit.group == "Deprecated" %}
- {% if commit.scope %}**{{ commit.scope }}:** {% endif %}{{ commit.message | upper_first }}
{% endif %}
{% endfor %}
### Removed
{% for commit in release.commits %}
{% if commit.group == "Removed" %}
- {% if commit.scope %}**{{ commit.scope }}:** {% endif %}{{ commit.message | upper_first }}
{% endif %}
{% endfor %}
### Security
{% for commit in release.commits %}
{% if commit.group == "Security" %}
- {% if commit.scope %}**{{ commit.scope }}:** {% endif %}{{ commit.message | upper_first }}
{% endif %}
{% endfor %}
{% endfor %}
=======
# NOTE: `body` is rendered once *per release*, so the release fields
# (`version`, `timestamp`, `commits`) are at the root of the context.
# There is no `releases` variable here — only `footer` gets that.
body = """
## [{% if version %}{{ version }}{% else %}Unreleased{% endif %}]{% if timestamp %} - {{ timestamp | date(format=\"%Y-%m-%d\") }}{% endif %}
{% for section in ["Added", "Fixed", "Changed", "Deprecated", "Removed", "Security"] %}
{%- set section_commits = commits | filter(attribute="group", value=section) %}
{%- if section_commits | length > 0 %}
### {{ section }}
{% for commit in section_commits %}
- {% if commit.scope %}**{{ commit.scope }}:** {% endif %}{{ commit.message | upper_first }}
{%- endfor %}
{%- endif %}
{%- endfor %}
>>>>>>> emwulrd/main
"""
trim = true
[git]
conventional_commits = true
filter_unconventional = false
split_commits = false
sort_commits = "oldest"
commit_preprocessors = [
{ pattern = "(?i)\\s*\\(#(\\d+)\\)", replace = "" },
{ pattern = "(?i)^\\s+|\\s+$", replace = "" },
]
commit_parsers = [
{ message = "(?i)^feat(\\(.+\\))?!?:", group = "Added" },
{ message = "(?i)^fix(\\(.+\\))?!?:", group = "Fixed" },
{ message = "(?i)^(perf|refactor|build|ci|docs|style|test|chore)(\\(.+\\))?!?:", group = "Changed" },
{ message = "(?i)deprecat", group = "Deprecated" },
{ message = "(?i)^(remove|revert)(\\(.+\\))?!?:|\\b(remove|removed|breaking)\\b", group = "Removed" },
{ message = "(?i)^(security)(\\(.+\\))?!?:|\\b(cve|security|vuln|xss|sqli|csrf)\\b", group = "Security" },
{ message = "(?i)^.*!:", group = "Removed" },
]
protect_breaking_commits = false
filter_commits = false
topo_order = false