-
Notifications
You must be signed in to change notification settings - Fork 46
Expand file tree
/
Copy pathcliff.toml
More file actions
75 lines (69 loc) · 2.74 KB
/
cliff.toml
File metadata and controls
75 lines (69 loc) · 2.74 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
[changelog]
header = ""
body = """
{%- macro render_group(name, commits) -%}
{%- set found = commits | filter(attribute="group", value=name) -%}
{%- if found | length > 0 %}
### {{ name }}
{% for commit in found -%}
- **{{ commit.scope | default(value="core") }}:** {{ commit.message | split(pat="\n") | first | trim }} ([`{{ commit.id | truncate(length=7, end="") }}`](https://github.com/automagik-dev/genie/commit/{{ commit.id }}))
{% endfor %}
{%- endif -%}
{%- endmacro -%}
{{ self::render_group(name="🚀 Features", commits=commits) -}}
{{ self::render_group(name="🐛 Bug Fixes", commits=commits) -}}
{{ self::render_group(name="⚡ Performance", commits=commits) -}}
{{ self::render_group(name="♻️ Refactoring", commits=commits) -}}
{{ self::render_group(name="🧪 Testing", commits=commits) -}}
{{ self::render_group(name="📚 Documentation", commits=commits) -}}
{{ self::render_group(name="⚙️ CI/CD", commits=commits) -}}
{{ self::render_group(name="🔧 Miscellaneous", commits=commits) -}}
{%- set_global contributors = [] -%}
{%- for commit in commits -%}
{%- set author = commit.author.name | default(value="") -%}
{%- if author != "" and author != "github-actions[bot]" -%}
{%- if contributors is not containing(author) -%}
{%- set_global contributors = contributors | concat(with=author) -%}
{%- endif -%}
{%- endif -%}
{%- endfor -%}
{%- if contributors | length > 0 %}
### 👥 Contributors
{% for name in contributors -%}
{%- if name == "Cezar Vasconcelos" -%}
- [@vasconceloscezar](https://github.com/vasconceloscezar)
{% elif name == "Felipe Rosa" -%}
- [@namastex888](https://github.com/namastex888)
{% elif name == "Genie" -%}
- [@genie](https://github.com/genie) 🤖
{% else -%}
- {{ name }}
{% endif -%}
{%- endfor -%}
{%- endif -%}
"""
trim = true
[git]
conventional_commits = true
filter_unconventional = true
# Ignore intermediate version tags within the commit range to prevent
# duplicate section headers. The range boundaries are set by the workflow.
ignore_tags = ".*"
sort_commits = "newest"
# Escape @ mentions in commit messages so GitHub doesn't linkify them as users
commit_preprocessors = [
{ pattern = "@([a-zA-Z])", replace = "@\u200B${1}" },
]
commit_parsers = [
{ message = "^feat", group = "🚀 Features" },
{ message = "^fix", group = "🐛 Bug Fixes" },
{ message = "^refactor", group = "♻️ Refactoring" },
{ message = "^perf", group = "⚡ Performance" },
{ message = "^test", group = "🧪 Testing" },
{ message = "^doc", group = "📚 Documentation" },
{ message = "^ci", group = "⚙️ CI/CD" },
{ message = "^chore\\(version\\)", skip = true },
{ message = "^chore", group = "🔧 Miscellaneous" },
{ message = "^Merge", skip = true },
{ message = ".*", group = "🔧 Miscellaneous" },
]