-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcliff.toml
More file actions
56 lines (53 loc) · 2.07 KB
/
Copy pathcliff.toml
File metadata and controls
56 lines (53 loc) · 2.07 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
[changelog]
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 | striptags | trim | upper_first }}
{% for commit in commits %}
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
{% if commit.breaking %}[**breaking**] {% endif %}\
{{ commit.message | upper_first }} \
([`{{ commit.id | truncate(length=7, end="") }}`]\
(https://github.com/benner/commit-guard/commit/{{ commit.id }}))\
{% endfor %}
{% endfor %}
{%- if github.contributors | filter(attribute="is_first_time", value=true) | length != 0 %}
### New Contributors
{% for contributor in github.contributors | filter(attribute="is_first_time", value=true) %}
- @{{ contributor.username }} made their first contribution\
{% if contributor.pr_number %} in \
[#{{ contributor.pr_number }}]\
(https://github.com/benner/commit-guard/pull/{{ contributor.pr_number }})\
{% endif %}
{% endfor %}
{%- endif %}
"""
trim = true
[remote.github]
owner = "benner"
repo = "commit-guard"
[git]
conventional_commits = true
filter_unconventional = true
split_commits = false
protect_breaking_commits = false
commit_parsers = [
{ message = "^feat", group = "<!-- 0 -->🚀 Features" },
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
{ message = "^perf", group = "<!-- 2 -->⚡ Performance" },
{ message = "^refactor", group = "<!-- 3 -->🚜 Refactor" },
{ message = "^style", group = "<!-- 4 -->🎨 Styling" },
{ message = "^test", group = "<!-- 5 -->🧪 Testing" },
{ message = "^docs", skip = true },
{ message = "^ci", skip = true },
{ message = "^chore", group = "<!-- 6 -->⚙️ Miscellaneous Tasks" },
{ message = "^revert", group = "<!-- 7 -->◀️ Revert" },
{ body = ".*security", group = "<!-- 8 -->🛡️ Security" },
]
filter_commits = true
topo_order = false
sort_commits = "oldest"