-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcliff.toml
More file actions
54 lines (51 loc) · 2.73 KB
/
cliff.toml
File metadata and controls
54 lines (51 loc) · 2.73 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
[changelog]
header = """"""
body = """
{% if version %}
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}\
{% else %}\
## Unreleased\
{% endif %}
{% for group, commits in commits | group_by(attribute="group") %}\
### {{ group | upper_first }}
{% for commit in commits %}
- {% if commit.breaking %}[**breaking**] {% endif %}{% if commit.scope %}**{{ commit.scope }}:** {% endif %}{{ commit.message | split(pat="\n") | first | trim | upper_first }} {% if commit.author.username and not (commit.author.username is containing("[bot]")) %}by [@{{ commit.author.username }}](https://github.com/{{ commit.author.username }}){% elif commit.author.username %}by {{ commit.author.username }}{% elif commit.author.name and not (commit.author.name is containing("[bot]")) %}by [@{{ commit.author.name }}](https://github.com/{{ commit.author.name }}){% else %}by {{ commit.author.name }}{% endif %} {% if commit.url %}([{{ commit.id | truncate(length=7, end="") }}]({{ commit.url }})){% else %}([{{ commit.id | truncate(length=7, end="") }}](https://github.com/AroxBot/framework/commit/{{ commit.id }})){% endif %}\
{% endfor %}\n
{% endfor %}
"""
trim = true
footer = """
<!-- generated by git-cliff -->
"""
[git]
conventional_commits = true
filter_unconventional = true
protect_breaking_commits = true
sort_commits = "oldest"
split_commits = false
commit_preprocessors = [
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](https://github.com/AroxBot/framework/pull/${2}))" },
{ pattern = '\(([a-f0-9]{7,40})\)', replace = "([${1}](https://github.com/AroxBot/framework/commit/${1}))" },
{ pattern = '(?s)--- updated-dependencies:.*', replace = "" },
{ pattern = '(?m)^Signed-off-by:.*$', replace = "" },
{ pattern = '(?m)^Co-authored-by:.*$', replace = "" },
]
commit_parsers = [
{ message = "^fixup!", skip = true },
{ message = "^chore\\(release\\):", skip = true },
{ message = "^feat(\\(.+\\))?!?:", group = "Features" },
{ message = "^fix(\\(.+\\))?!?:", group = "Bug Fixes" },
{ message = "^docs(\\(.+\\))?!?:", group = "Documentation" },
{ message = "^style(\\(.+\\))?!?:", group = "Styling" },
{ message = "^refactor(\\(.+\\))?!?:", group = "Refactor" },
{ message = "^perf(\\(.+\\))?!?:", group = "Performance" },
{ message = "^test(\\(.+\\))?!?:", group = "Testing" },
{ message = "^build(\\(.+\\))?!?:", group = "Build System" },
{ message = "^ci(\\(.+\\))?!?:", group = "Continuous Integration" },
{ message = "^chore(\\(.+\\))?!?:", group = "Chores" },
{ message = "^revert(\\(.+\\))?!?:|^Revert", group = "Reverts" },
{ body = ".*security", group = "Security" },
{ message = "^deps", group = "Dependencies" },
{ message = "^Merge pull request", group = "Pull Requests" },
{ message = "^Merge branch", group = "Merges" },
]