-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcliff.toml
More file actions
116 lines (110 loc) · 5.78 KB
/
Copy pathcliff.toml
File metadata and controls
116 lines (110 loc) · 5.78 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
[changelog]
header = """
# Changelog\n
All notable changes to this project will be documented in this file.\n
**NOTE:** Changes are ordered by date, starting with the most oldest to the most recent.\n
> This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) and uses [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) for commit messages.\n
"""
body = """
{%- macro remote_url() -%}
https://github.com/{{ remote.github.owner }}/{{ remote.github.repo }}
{%- endmacro -%}
{% if version -%}
## {{ version | trim_start_matches(pat="v") }} ({{ timestamp | date(format="%B %d, %Y") | replace(from=" 0", to=" ") }})
{% else -%}
## Unreleased
{% endif -%}
{% if message -%}
### 📝 Release Notes
{{ message | safe }}
{% endif -%}
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | replace(from="<!-- \\d+ -->", to="") | trim | upper_first }}
{% for commit in commits -%}
{%- set commit_title = commit.message | split(pat="\n") | first | trim -%}
{%- set normalized_title = commit_title -%}
{%- set pr_markup = "" -%}
{%- if commit.remote.pr_number -%}
{%- set pr_url = "https://github.com/" ~ remote.github.owner ~ "/" ~ remote.github.repo ~ "/issues/" ~ commit.remote.pr_number -%}
{%- set pr_markup = "([#" ~ commit.remote.pr_number ~ "](" ~ pr_url ~ "))" -%}
{%- set normalized_title = normalized_title | replace(from=" " ~ pr_markup, to="") | replace(from=pr_markup, to="") | trim -%}
{%- endif -%}
{%- set author_segment = "" -%}
{%- if commit.remote.pr_number and commit.remote.username -%}
{%- if commit.remote.username != "renovate[bot]" and commit.remote.username != "github-actions[bot]" and commit.remote.username != "yehezkieldio" and commit.remote.username != "Copilot" -%}
{%- set author_segment = " by [@" ~ commit.remote.username ~ "](https://github.com/" ~ commit.remote.username ~ ")" -%}
{%- else -%}
{%- set author_segment = " by " ~ commit.remote.username -%}
{%- endif -%}
{%- endif -%}
{%- set commit_url = "https://github.com/" ~ remote.github.owner ~ "/" ~ remote.github.repo ~ "/commit/" ~ commit.id -%}
- [`{{ commit.id | truncate(length=7, end="") }}`]({{ commit_url }}){% if commit.scope %} {{ commit.scope }}:{% endif %} {{ normalized_title | upper_first }}{% if author_segment != "" %}{{ author_segment }}{% endif %}{% if pr_markup != "" %} {{ pr_markup }}{% endif %}
{%- if commit.breaking %}
{% if commit.footers | length > 0 %}
{% for breakingChange in commit.footers %}
- 💥 **{{ breakingChange.token }}{{ breakingChange.separator }}** {{ breakingChange.value }}
{% endfor %}
{% else %}
- 💥 **BREAKING CHANGE:** This commit introduces a breaking change.
{% endif %}
{%- endif %}
{% endfor -%}
{% endfor %}
"""
footer = ""
trim = true
postprocessors = []
[git]
conventional_commits = true
filter_unconventional = false
commit_preprocessors = [
{ pattern = "\\(#([0-9]+)\\)", replace = "([#${1}](https://github.com/yehezkieldio/firefly/issues/${1}))" },
]
commit_parsers = [
{ message = "^chore\\(release\\): release", skip = true },
{ message = "^chore: release", skip = true },
{ message = "^chore\\(version\\)", skip = true },
{ message = "^fix\\(deps\\)", group = "<!-- 2 -->🧩 Dependencies Updates" },
{ message = "^chore\\(deps\\)", group = "<!-- 2 -->🧩 Dependencies Updates" },
{ message = "^build\\(deps\\)", group = "<!-- 2 -->🧩 Dependencies Updates" },
{ message = "^style\\(deps\\)", group = "<!-- 2 -->🧩 Dependencies Updates" },
{ message = "^perf\\(deps\\)", group = "<!-- 2 -->🧩 Dependencies Updates" },
{ message = "^deps:", group = "<!-- 2 -->🧩 Dependencies Updates" },
{ message = "^feat!|^feat\\(.*\\)!", group = "<!-- 3 -->🚀 New Features", breaking = true },
{ message = "^fix!|^fix\\(.*\\)!", group = "<!-- 4 -->🐛 Bug Fixes", breaking = true },
{ message = "^refactor!|^refactor\\(.*\\)!", group = "<!-- 7 -->🚜 Refactor", breaking = true },
{ message = "^perf!|^perf\\(.*\\)!", group = "<!-- 6 -->⚡ Performance", breaking = true },
{ message = "^feat", group = "<!-- 3 -->🚀 New Features" },
{ message = "^feature", group = "<!-- 3 -->🚀 New Features" },
{ message = "^fix", group = "<!-- 4 -->🐛 Bug Fixes" },
{ message = "^docs", group = "<!-- 5 -->📚 Documentation" },
{ message = "^refactor", group = "<!-- 7 -->🚜 Refactor" },
{ message = "^build\\(deps\\)", group = "<!-- 2 -->🧩 Dependencies Updates" },
{ message = "^build", group = "<!-- 8 -->🏗️ Build System" },
{ message = "^style\\(deps\\)", group = "<!-- 2 -->🧩 Dependencies Updates" },
{ message = "^style", group = "<!-- 9 -->🎨 Code Styling" },
{ message = "^format", group = "<!-- 9 -->🎨 Code Styling" },
{ message = "^test", group = "<!-- 10 -->🧪 Test" },
{ message = "^tests", group = "<!-- 10 -->🧪 Test" },
{ message = "^chore\\(ci\\)", group = "<!-- 16 -->🤖 CI/CD" },
{ message = "^ci", group = "<!-- 16 -->🤖 CI/CD" },
{ message = "^chore", group = "<!-- 11 -->🛠️ Miscellaneous" },
{ message = "^security", group = "<!-- 12 -->🔒 Security" },
{ message = "^compat", group = "<!-- 13 -->🔗 Compatibility" },
{ message = "^revert", group = "<!-- 14 -->⏪ Reverts" },
{ message = "^Revert", group = "<!-- 14 -->⏪ Reverts" },
{ message = "^i18n", group = "<!-- 15 -->🌐 Internationalization" },
{ message = "^locale", group = "<!-- 15 -->🌐 Internationalization" },
{ message = "^translation", group = "<!-- 15 -->🌐 Internationalization" },
{ message = "^ci", group = "<!-- 16 -->🤖 CI/CD" },
{ message = ".*deprecated", body = ".*deprecated", group = "<!-- 30 -->⚠️ Deprecation" },
{ message = ".*", group = "<!-- 99 -->🌀 Other" },
]
filter_commits = false
tag_pattern = "firefly@[0-9]"
ignore_tags = ""
topo_order = false
sort_commits = "oldest"
[remote.github]
owner = "yehezkieldio"
repo = "firefly"