-
-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy pathcliff.toml
More file actions
57 lines (54 loc) · 2.06 KB
/
Copy pathcliff.toml
File metadata and controls
57 lines (54 loc) · 2.06 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
57
[remote.github]
owner = "ferraridamiano"
repo = "ConverterNOW"
[changelog]
header = ""
body = """
{%- macro remote_url() -%}
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%}
{%- macro github_username(email) -%}
{%- if email is containing("@users.noreply.github.com") -%}
{{ email | split(pat="@") | first | split(pat="+") | last }}
{%- elif email is containing("@") -%}
{{ email | split(pat="@") | first }}
{%- else -%}
{{ email }}
{%- endif -%}
{%- endmacro -%}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | upper_first }}
{% for commit in commits %}
- {{ commit.message | split(pat="\n") | first | upper_first | trim }} ([`{{ commit.id | truncate(length=7, end="") }}`]({{ self::remote_url() }}/commit/{{ commit.id }}))\
{% for footer in commit.footers -%}
, {{ footer.token }}{{ footer.separator }}{{ footer.value }}\
{% endfor %}\
{% endfor %}
{% endfor %}
### 👥 Contributors
{% set contributors = commits | unique(attribute="author.email") | sort(attribute="author.email") -%}
{% for contributor in contributors -%}
- @{{ self::github_username(email=contributor.author.email) }}
{% endfor %}\n
"""
[git]
conventional_commits = true
filter_unconventional = false
commit_parsers = [
{ message = "^feat", group = "🚀 Features" },
{ message = "^fix", group = "🐛 Bug Fixes" },
{ message = "^doc", group = "📝 Documentation" },
{ message = "^perf", group = "⚡ Performance" },
{ message = "^refactor", group = "🧹 Refactor" },
{ message = "^style", group = "🎨 Styling" },
{ message = "^test", group = "🧪 Testing" },
{ message = "^chore\\(deps.*\\)", skip = true },
{ message = "^chore\\(pr\\)", skip = true },
{ message = "^chore\\(pull\\)", skip = true },
{ message = "^chore\\(release\\)", skip = true },
{ message = "^chore|^ci", group = "🧰 Miscellaneous Tasks" },
{ body = ".*security", group = "🔐 Security" },
]
filter_commits = false
topo_order = false
sort_commits = "oldest"