-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.git-cliff.toml
More file actions
302 lines (256 loc) · 19.5 KB
/
Copy path.git-cliff.toml
File metadata and controls
302 lines (256 loc) · 19.5 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
[changelog]
header = """
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
The current `0.7.x` release line is an alpha line. Public release artifacts
use `0.7.0-alpha.<build_number>` versions and matching
`v0.7.0-alpha.<build_number>` tags until the installer, signing and release
automation are stable enough for a non-alpha release.
Public alpha installer executables are unsigned until Authenticode signing is
configured.
"""
body = """
{% if version %}
<!-- BEGIN RELEASE {{ version }} -->
## 🚀 [{{ version | trim_start_matches(pat="v") }}](https://github.com/nasterlabs/codex13-student-dev-kit/releases/tag/{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}
<!-- BEGIN RELEASE Unreleased -->
## [Unreleased]
{% endif %}
{% set include_empty_sections = get_env(name="GIT_CLIFF_INCLUDE_EMPTY_SECTIONS", default="0") %}
<!-- BEGIN RELEASE DESCRIPTION -->
TODO: Add a short release summary.
<!-- END RELEASE DESCRIPTION -->
### 🌟 Highlights
<!-- BEGIN RELEASE HIGHLIGHTS -->
- TODO: Add the most important release highlight.
<!-- END RELEASE HIGHLIGHTS -->
{% for group_name in ["✨ Features", "🐛 Fixes", "⚡ Performance", "📝 Documentation", "♻️ Refactoring", "🏗️ Build, CI and Release Automation", "🔒 Security", "⬆️ Dependencies", "🧹 Maintenance"] %}
{% set group_commits = commits | filter(attribute="group", value=group_name) %}
{% if group_commits | length > 0 or include_empty_sections == "1" %}
### {{ group_name }}
{% if group_commits | length == 0 %}
_No changes in this category._
{% elif group_name == "⬆️ Dependencies" %}
{% set deps = group_commits | filter(attribute="scope", value="deps") %}
{% set deps_dev = group_commits | filter(attribute="scope", value="deps-dev") %}
#### GitHub Actions and CI
{% set_global has_actions = false %}
{% for commit in deps %}
{% set title = commit.remote.pr_title | default(value=commit.message) | split(pat=" (#") | first | split(pat=": ") | last %}
{% set title = title | split(pat=" in the ") | first | split(pat=" across ") | first %}
{% set_global is_action = false %}
{% if title is containing("actions/") %}{% set_global is_action = true %}{% endif %}
{% if title is containing("action-") %}{% set_global is_action = true %}{% endif %}
{% if title is containing("softprops/") %}{% set_global is_action = true %}{% endif %}
{% if title is containing("pnpm/action-setup") %}{% set_global is_action = true %}{% endif %}
{% if is_action %}
{% set_global has_actions = true %}
- Updated `{{ title | replace(from="Bump ", to="") | replace(from="bump ", to="") | replace(from=" from ", to="` from `") | replace(from=" to ", to="` to `") }}` by {% if commit.remote.username %}[@{{ commit.remote.username }}]({% if commit.remote.username == "dependabot[bot]" %}https://github.com/apps/dependabot{% else %}https://github.com/{{ commit.remote.username }}{% endif %}){% else %}{{ commit.author.name | default(value="unknown author") }}{% endif %} in {% if commit.remote.pr_number %}[#{{ commit.remote.pr_number }}](https://github.com/nasterlabs/codex13-student-dev-kit/pull/{{ commit.remote.pr_number }}){% else %}[{{ commit.id | truncate(length=7, end="") }}](https://github.com/nasterlabs/codex13-student-dev-kit/commit/{{ commit.id }}){% endif %}.
{% endif %}
{% endfor %}
{% if not has_actions %}
_No GitHub Actions dependency updates._
{% endif %}
#### Production Dependencies
{% set_global has_prod = false %}
{% for commit in deps %}
{% set title = commit.remote.pr_title | default(value=commit.message) | split(pat=" (#") | first | split(pat=": ") | last %}
{% set title = title | split(pat=" in the ") | first | split(pat=" across ") | first %}
{% set_global is_action = false %}
{% if title is containing("actions/") %}{% set_global is_action = true %}{% endif %}
{% if title is containing("action-") %}{% set_global is_action = true %}{% endif %}
{% if title is containing("softprops/") %}{% set_global is_action = true %}{% endif %}
{% if title is containing("pnpm/action-setup") %}{% set_global is_action = true %}{% endif %}
{% if not is_action %}
{% set_global has_prod = true %}
- Updated `{{ title | replace(from="Bump ", to="") | replace(from="bump ", to="") | replace(from=" from ", to="` from `") | replace(from=" to ", to="` to `") }}` by {% if commit.remote.username %}[@{{ commit.remote.username }}]({% if commit.remote.username == "dependabot[bot]" %}https://github.com/apps/dependabot{% else %}https://github.com/{{ commit.remote.username }}{% endif %}){% else %}{{ commit.author.name | default(value="unknown author") }}{% endif %} in {% if commit.remote.pr_number %}[#{{ commit.remote.pr_number }}](https://github.com/nasterlabs/codex13-student-dev-kit/pull/{{ commit.remote.pr_number }}){% else %}[{{ commit.id | truncate(length=7, end="") }}](https://github.com/nasterlabs/codex13-student-dev-kit/commit/{{ commit.id }}){% endif %}.
{% endif %}
{% endfor %}
{% if not has_prod %}
_No production dependency updates._
{% endif %}
#### Developer Tooling
{% if deps_dev | length == 0 %}
_No developer tooling dependency updates._
{% else %}
{% for commit in deps_dev %}
{% set title = commit.remote.pr_title | default(value=commit.message) | split(pat=" (#") | first | split(pat=": ") | last %}
{% set title = title | split(pat=" in the ") | first | split(pat=" across ") | first %}
- Updated `{{ title | replace(from="Bump ", to="") | replace(from="bump ", to="") | replace(from=" from ", to="` from `") | replace(from=" to ", to="` to `") }}` by {% if commit.remote.username %}[@{{ commit.remote.username }}]({% if commit.remote.username == "dependabot[bot]" %}https://github.com/apps/dependabot{% else %}https://github.com/{{ commit.remote.username }}{% endif %}){% else %}{{ commit.author.name | default(value="unknown author") }}{% endif %} in {% if commit.remote.pr_number %}[#{{ commit.remote.pr_number }}](https://github.com/nasterlabs/codex13-student-dev-kit/pull/{{ commit.remote.pr_number }}){% else %}[{{ commit.id | truncate(length=7, end="") }}](https://github.com/nasterlabs/codex13-student-dev-kit/commit/{{ commit.id }}){% endif %}.
{% endfor %}
{% endif %}
{% elif group_name == "🏗️ Build, CI and Release Automation" %}
{% set_global has_release_automation = false %}
{% for commit in group_commits %}
{% set title = commit.remote.pr_title | default(value=commit.message) | split(pat=" (#") | first | split(pat=": ") | last %}
{% if title is containing("release") %}{% set_global has_release_automation = true %}{% endif %}
{% if title is containing("Release") %}{% set_global has_release_automation = true %}{% endif %}
{% if title is containing("tag") %}{% set_global has_release_automation = true %}{% endif %}
{% if title is containing("assets") %}{% set_global has_release_automation = true %}{% endif %}
{% endfor %}
{% if has_release_automation %}
#### Release Automation
{% for commit in group_commits %}
{% set title = commit.remote.pr_title | default(value=commit.message) | split(pat=" (#") | first | split(pat=": ") | last %}
{% set_global is_release_automation = false %}
{% if title is containing("release") %}{% set_global is_release_automation = true %}{% endif %}
{% if title is containing("Release") %}{% set_global is_release_automation = true %}{% endif %}
{% if title is containing("tag") %}{% set_global is_release_automation = true %}{% endif %}
{% if title is containing("assets") %}{% set_global is_release_automation = true %}{% endif %}
{% if is_release_automation %}
- {{ title | upper_first }} by {% if commit.remote.username %}[@{{ commit.remote.username }}]({% if commit.remote.username == "dependabot[bot]" %}https://github.com/apps/dependabot{% else %}https://github.com/{{ commit.remote.username }}{% endif %}){% else %}{{ commit.author.name | default(value="unknown author") }}{% endif %} in {% if commit.remote.pr_number %}[#{{ commit.remote.pr_number }}](https://github.com/nasterlabs/codex13-student-dev-kit/pull/{{ commit.remote.pr_number }}){% else %}[{{ commit.id | truncate(length=7, end="") }}](https://github.com/nasterlabs/codex13-student-dev-kit/commit/{{ commit.id }}){% endif %}.
{% endif %}
{% endfor %}
{% endif %}
{% set_global has_developer_tooling = false %}
{% for commit in group_commits %}
{% set title = commit.remote.pr_title | default(value=commit.message) | split(pat=" (#") | first | split(pat=": ") | last %}
{% if title is containing("developer tooling") %}{% set_global has_developer_tooling = true %}{% endif %}
{% if title is containing("pwsh") %}{% set_global has_developer_tooling = true %}{% endif %}
{% endfor %}
{% if has_developer_tooling %}
#### Developer Tooling
{% for commit in group_commits %}
{% set title = commit.remote.pr_title | default(value=commit.message) | split(pat=" (#") | first | split(pat=": ") | last %}
{% set_global is_developer_tooling = false %}
{% if title is containing("developer tooling") %}{% set_global is_developer_tooling = true %}{% endif %}
{% if title is containing("pwsh") %}{% set_global is_developer_tooling = true %}{% endif %}
{% if is_developer_tooling %}
- {{ title | upper_first }} by {% if commit.remote.username %}[@{{ commit.remote.username }}]({% if commit.remote.username == "dependabot[bot]" %}https://github.com/apps/dependabot{% else %}https://github.com/{{ commit.remote.username }}{% endif %}){% else %}{{ commit.author.name | default(value="unknown author") }}{% endif %} in {% if commit.remote.pr_number %}[#{{ commit.remote.pr_number }}](https://github.com/nasterlabs/codex13-student-dev-kit/pull/{{ commit.remote.pr_number }}){% else %}[{{ commit.id | truncate(length=7, end="") }}](https://github.com/nasterlabs/codex13-student-dev-kit/commit/{{ commit.id }}){% endif %}.
{% endif %}
{% endfor %}
{% endif %}
{% set_global has_repository_checks = false %}
{% for commit in group_commits %}
{% set title = commit.remote.pr_title | default(value=commit.message) | split(pat=" (#") | first | split(pat=": ") | last %}
{% if title is containing("CodeQL") %}{% set_global has_repository_checks = true %}{% endif %}
{% if title is containing("DCO") %}{% set_global has_repository_checks = true %}{% endif %}
{% if title is containing("lint") %}{% set_global has_repository_checks = true %}{% endif %}
{% if title is containing("signed") %}{% set_global has_repository_checks = true %}{% endif %}
{% if title is containing("editorconfig") %}{% set_global has_repository_checks = true %}{% endif %}
{% if title is containing("dependency update validation") %}{% set_global has_repository_checks = true %}{% endif %}
{% if title is containing("NSIS plugin hash") %}{% set_global has_repository_checks = true %}{% endif %}
{% endfor %}
{% if has_repository_checks %}
#### Repository Checks
{% for commit in group_commits %}
{% set title = commit.remote.pr_title | default(value=commit.message) | split(pat=" (#") | first | split(pat=": ") | last %}
{% set_global is_repository_check = false %}
{% if title is containing("CodeQL") %}{% set_global is_repository_check = true %}{% endif %}
{% if title is containing("DCO") %}{% set_global is_repository_check = true %}{% endif %}
{% if title is containing("lint") %}{% set_global is_repository_check = true %}{% endif %}
{% if title is containing("signed") %}{% set_global is_repository_check = true %}{% endif %}
{% if title is containing("editorconfig") %}{% set_global is_repository_check = true %}{% endif %}
{% if title is containing("dependency update validation") %}{% set_global is_repository_check = true %}{% endif %}
{% if title is containing("NSIS plugin hash") %}{% set_global is_repository_check = true %}{% endif %}
{% if is_repository_check %}
- {{ title | upper_first }} by {% if commit.remote.username %}[@{{ commit.remote.username }}]({% if commit.remote.username == "dependabot[bot]" %}https://github.com/apps/dependabot{% else %}https://github.com/{{ commit.remote.username }}{% endif %}){% else %}{{ commit.author.name | default(value="unknown author") }}{% endif %} in {% if commit.remote.pr_number %}[#{{ commit.remote.pr_number }}](https://github.com/nasterlabs/codex13-student-dev-kit/pull/{{ commit.remote.pr_number }}){% else %}[{{ commit.id | truncate(length=7, end="") }}](https://github.com/nasterlabs/codex13-student-dev-kit/commit/{{ commit.id }}){% endif %}.
{% endif %}
{% endfor %}
{% endif %}
#### CI/CD
{% for commit in group_commits %}
{% set title = commit.remote.pr_title | default(value=commit.message) | split(pat=" (#") | first | split(pat=": ") | last %}
{% set_global is_release_automation = false %}
{% if title is containing("release") %}{% set_global is_release_automation = true %}{% endif %}
{% if title is containing("Release") %}{% set_global is_release_automation = true %}{% endif %}
{% if title is containing("tag") %}{% set_global is_release_automation = true %}{% endif %}
{% if title is containing("assets") %}{% set_global is_release_automation = true %}{% endif %}
{% set_global is_developer_tooling = false %}
{% if title is containing("developer tooling") %}{% set_global is_developer_tooling = true %}{% endif %}
{% if title is containing("pwsh") %}{% set_global is_developer_tooling = true %}{% endif %}
{% set_global is_repository_check = false %}
{% if title is containing("CodeQL") %}{% set_global is_repository_check = true %}{% endif %}
{% if title is containing("DCO") %}{% set_global is_repository_check = true %}{% endif %}
{% if title is containing("lint") %}{% set_global is_repository_check = true %}{% endif %}
{% if title is containing("signed") %}{% set_global is_repository_check = true %}{% endif %}
{% if title is containing("editorconfig") %}{% set_global is_repository_check = true %}{% endif %}
{% if title is containing("dependency update validation") %}{% set_global is_repository_check = true %}{% endif %}
{% if title is containing("NSIS plugin hash") %}{% set_global is_repository_check = true %}{% endif %}
{% if not is_release_automation and not is_developer_tooling and not is_repository_check %}
- {{ title | upper_first }} by {% if commit.remote.username %}[@{{ commit.remote.username }}]({% if commit.remote.username == "dependabot[bot]" %}https://github.com/apps/dependabot{% else %}https://github.com/{{ commit.remote.username }}{% endif %}){% else %}{{ commit.author.name | default(value="unknown author") }}{% endif %} in {% if commit.remote.pr_number %}[#{{ commit.remote.pr_number }}](https://github.com/nasterlabs/codex13-student-dev-kit/pull/{{ commit.remote.pr_number }}){% else %}[{{ commit.id | truncate(length=7, end="") }}](https://github.com/nasterlabs/codex13-student-dev-kit/commit/{{ commit.id }}){% endif %}.
{% endif %}
{% endfor %}
{% else %}
{% set_global has_scoped_commits = false %}
{% for commit in group_commits %}
{% if commit.scope %}{% set_global has_scoped_commits = true %}{% endif %}
{% endfor %}
{% if has_scoped_commits %}
{% set_global has_unscoped_commits = false %}
{% for commit in group_commits %}
{% if not commit.scope %}{% set_global has_unscoped_commits = true %}{% endif %}
{% endfor %}
{% if has_unscoped_commits %}
#### General
{% for commit in group_commits %}
{% if not commit.scope %}
{% set title = commit.remote.pr_title | default(value=commit.message) | split(pat=" (#") | first | split(pat=": ") | last %}
- {{ title | upper_first }} by {% if commit.remote.username %}[@{{ commit.remote.username }}]({% if commit.remote.username == "dependabot[bot]" %}https://github.com/apps/dependabot{% else %}https://github.com/{{ commit.remote.username }}{% endif %}){% else %}{{ commit.author.name | default(value="unknown author") }}{% endif %} in {% if commit.remote.pr_number %}[#{{ commit.remote.pr_number }}](https://github.com/nasterlabs/codex13-student-dev-kit/pull/{{ commit.remote.pr_number }}){% else %}[{{ commit.id | truncate(length=7, end="") }}](https://github.com/nasterlabs/codex13-student-dev-kit/commit/{{ commit.id }}){% endif %}.
{% endif %}
{% endfor %}
{% endif %}
{% for scope, scoped_commits in group_commits | group_by(attribute="scope") %}
#### {% if scope %}{{ scope | replace(from="-", to=" ") | title }}{% else %}General{% endif %}
{% for commit in scoped_commits %}
{% if commit.scope %}
{% set title = commit.remote.pr_title | default(value=commit.message) | split(pat=" (#") | first | split(pat=": ") | last %}
- {{ title | upper_first }} by {% if commit.remote.username %}[@{{ commit.remote.username }}]({% if commit.remote.username == "dependabot[bot]" %}https://github.com/apps/dependabot{% else %}https://github.com/{{ commit.remote.username }}{% endif %}){% else %}{{ commit.author.name | default(value="unknown author") }}{% endif %} in {% if commit.remote.pr_number %}[#{{ commit.remote.pr_number }}](https://github.com/nasterlabs/codex13-student-dev-kit/pull/{{ commit.remote.pr_number }}){% else %}[{{ commit.id | truncate(length=7, end="") }}](https://github.com/nasterlabs/codex13-student-dev-kit/commit/{{ commit.id }}){% endif %}.
{% endif %}
{% endfor %}
{% endfor %}
{% else %}
{% for commit in group_commits %}
{% set title = commit.remote.pr_title | default(value=commit.message) | split(pat=" (#") | first | split(pat=": ") | last %}
- {% if commit.scope %}**{{ commit.scope | replace(from="-", to=" ") | title }}:** {% endif %}{{ title | upper_first }} by {% if commit.remote.username %}[@{{ commit.remote.username }}]({% if commit.remote.username == "dependabot[bot]" %}https://github.com/apps/dependabot{% else %}https://github.com/{{ commit.remote.username }}{% endif %}){% else %}{{ commit.author.name | default(value="unknown author") }}{% endif %} in {% if commit.remote.pr_number %}[#{{ commit.remote.pr_number }}](https://github.com/nasterlabs/codex13-student-dev-kit/pull/{{ commit.remote.pr_number }}){% else %}[{{ commit.id | truncate(length=7, end="") }}](https://github.com/nasterlabs/codex13-student-dev-kit/commit/{{ commit.id }}){% endif %}.
{% endfor %}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% if version %}
### 📦 Release Assets
- GitHub Release: [`{{ version }}`](https://github.com/nasterlabs/codex13-student-dev-kit/releases/tag/{{ version }})
{% endif %}
{% if version %}<!-- END RELEASE {{ version }} -->{% else %}<!-- END RELEASE Unreleased -->{% endif %}
"""
footer = ""
trim = true
postprocessors = [
{ pattern = ' +$', replace = "" },
{ pattern = '\n{3,}', replace = "\n\n" },
]
[git]
conventional_commits = true
filter_unconventional = true
split_commits = false
protect_breaking_commits = true
filter_commits = false
tag_pattern = "v[0-9].*"
sort_commits = "newest"
commit_parsers = [
{ message = "^feat", group = "✨ Features" },
{ message = "^fix\\(deps", group = "⬆️ Dependencies" },
{ message = "^fix\\(security\\)", group = "🔒 Security" },
{ message = "^fix", group = "🐛 Fixes" },
{ message = "^perf", group = "⚡ Performance" },
{ message = "^docs", group = "📝 Documentation" },
{ message = "^refactor", group = "♻️ Refactoring" },
{ message = "^chore\\(deps", group = "⬆️ Dependencies" },
{ message = "^build\\(deps", group = "⬆️ Dependencies" },
{ body = ".*dependabot.*", group = "⬆️ Dependencies" },
{ message = "^ci", group = "🏗️ Build, CI and Release Automation" },
{ message = "^test", group = "🏗️ Build, CI and Release Automation" },
{ message = "^build", group = "🏗️ Build, CI and Release Automation" },
{ message = "^chore\\(security\\)", group = "🔒 Security" },
{ message = "^chore\\(release\\)", skip = true },
{ message = "^chore: use pwsh for developer tooling", group = "🏗️ Build, CI and Release Automation" },
{ message = "^chore: replace eclint editorconfig check", group = "🏗️ Build, CI and Release Automation" },
{ message = "^chore: verify signed commits", group = "🏗️ Build, CI and Release Automation" },
{ message = "^chore", group = "🧹 Maintenance" },
]
[remote.github]
owner = "nasterlabs"
repo = "codex13-student-dev-kit"