-
Notifications
You must be signed in to change notification settings - Fork 0
/
cliff.toml
48 lines (47 loc) · 1.99 KB
/
cliff.toml
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
[changelog]
header = """
# Changelog\n
"""
body = """
{% if version %}\
## [{{ version | replace(from="v", to="")}}](https://github.com/rodmoioliveira/dreadful-clean-code/compare/{{previous.version}}...{{version}}) - {{ timestamp | date(format="%Y-%m-%d") }}\n
{% else %}\
## [unreleased]\n
{% endif %}\
{% if previous %}\
{% if previous.commit_id %}\
[{{ previous.commit_id | truncate(length=7, end="") }}](https://github.com/rodmoioliveira/dreadful-clean-code/commit/{{ previous.commit_id }})...[{{ commit_id | truncate(length=7, end="") }}](https://github.com/rodmoioliveira/dreadful-clean-code/commit/{{ commit_id }})\n
{% endif %}\
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}\
### {{ group | upper_first }}\n
{% for commit in commits %}\
- [{{ commit.id | truncate(length=7, end="") }}](https://github.com/rodmoioliveira/dreadful-clean-code/commit/{{ commit.id }}) - {{ commit.message | upper_first }}
{% endfor %}
{% endfor %}
"""
trim = true
footer = """"""
[git]
conventional_commits = true
commit_preprocessors = [
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/rodmoioliveira/dreadful-clean-code/issues/${2}))"}, # replace issue numbers
]
commit_parsers = [
{ message = "^release:*", skip = true },
{ message = "^feat: bump bin version to.+", skip = true },
{ message = "^Merge Request*", group = "Merge Request" },
{ message = ".+deps.+", group = "Dependencies" },
{ message = "^deps*", group = "Dependencies" },
{ message = "^chore*", group = "Miscellaneous Tasks" },
{ message = "^ci*", group = "CI" },
{ message = "^doc*", group = "Documentation" },
{ message = "^feat*", group = "Features" },
{ message = "^fix*", group = "Bug Fixes" },
{ message = "^perf*", group = "Performance" },
{ message = "^test*", group = "Testing" },
{ body = ".*security", group = "Security" },
{ message = ".*", group = "Other", default_scope = "other" },
]
filter_commits = false
tag_pattern = "[0-9]*"