-
Notifications
You must be signed in to change notification settings - Fork 10
/
cliff.toml
73 lines (70 loc) · 2.33 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
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
[changelog]
header = """
# Changelog\n
"""
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") %}
{% if group | striptags | trim == "Dependencies" %}
{% if not loop.first %}<br/>{% endif %}
**Dependency Updates:** \
{% for commit in commits %}\
[{{ loop.index }}\
{% if not loop.last %},{% endif %}\
](https://github.com/ottomated/create-o7-app/commit/{{ commit.id }})\
{% if not loop.last %} {% endif %}\
{% endfor %}
{% else %}
### {{ group | striptags | trim }}
{% for commit in commits %}
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message }}
{% endfor %}
{% endif %}
{% endfor %}\n
"""
# template for the changelog footer
footer = """
{% if releases | length == 1 %}
### See the [full changelog](https://github.com/ottomated/create-o7-app/blob/main/CHANGELOG.md)
{% endif %}
<!-- generated by git-cliff -->
"""
# remove the leading and trailing s
trim = true
# postprocessors
postprocessors = [
# { pattern = '<REPO>', replace = "https://github.com/orhun/git-cliff" }, # replace repository URL
]
[git]
conventional_commits = true
filter_unconventional = true
split_commits = false
# regex for preprocessing the commit messages
commit_preprocessors = []
# regex for parsing and grouping commits
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->features" },
{ message = "^fix", group = "<!-- 1 -->fixes" },
{ message = "^refactor", group = "<!-- 2 -->refactor" },
{ message = "^doc", group = "<!-- 3 -->docs" },
{ message = "^perf", group = "<!-- 4 -->performance" },
{ message = "^internal", group = "<!-- 5 -->internal" },
{ message = "^chore\\(release\\): prepare for", skip = true },
{ message = "^chore: Release", skip = true },
{ message = "^ci: Update changelog", skip = true },
{ message = "^chore\\(deps.*\\)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
{ message = "^ci: Update dependencies", group = "<!-- 7 -->Dependencies" },
{ message = "^chore|^ci", group = "<!-- 6 -->misc" },
]
protect_breaking_commits = false
filter_commits = false
topo_order = false
sort_commits = "oldest"