-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcliff.toml
More file actions
41 lines (39 loc) · 1.58 KB
/
Copy pathcliff.toml
File metadata and controls
41 lines (39 loc) · 1.58 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
# git-cliff ~ configuration
# https://git-cliff.org/docs/configuration
[changelog]
body = """
{% for group, commits in commits | group_by(attribute="group") %}\
### {{ group | striptags | trim | upper_first }}
{% for commit in commits %}\
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{{ commit.message | split(pat="\n") | first | upper_first | trim }}\
{% if commit.breaking %} **[breaking]**{% endif %} \
([{{ commit.id | truncate(length=7, end="") }}](https://github.com/kbzowski/ntfier/commit/{{ commit.id }}))\
{% endfor %}
{% endfor %}
"""
trim = true
[git]
conventional_commits = true
filter_unconventional = true
split_commits = false
commit_preprocessors = [
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/kbzowski/ntfier/issues/${2}))" },
]
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->Features" },
{ message = "^fix", group = "<!-- 1 -->Bug Fixes" },
{ message = "^perf", group = "<!-- 2 -->Performance" },
{ message = "^refactor", group = "<!-- 3 -->Refactoring" },
{ message = "^docs", group = "<!-- 4 -->Documentation" },
{ message = "^style", group = "<!-- 6 -->Style" },
{ message = "^build", group = "<!-- 7 -->Build" },
{ message = "^chore\\(release\\)", skip = true },
{ message = "^chore\\(version\\)", skip = true },
{ message = "^chore: release", skip = true },
{ message = "^chore: bump version", skip = true },
{ message = "^chore", group = "<!-- 5 -->Miscellaneous" },
{ message = "^ci", group = "<!-- 5 -->Miscellaneous" },
]
filter_commits = false
sort_commits = "newest"