-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.json
More file actions
397 lines (397 loc) Β· 11.9 KB
/
schema.json
File metadata and controls
397 lines (397 loc) Β· 11.9 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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"$schema": {
"default": "https://cdn.jsdelivr.net/npm/revola@0.1.0/schema.json",
"description": "Path to the JSON schema for IDE autocompletion.",
"type": "string",
"format": "uri"
},
"logLevel": {
"default": "info",
"description": "Controls the verbosity of Revola logging output.",
"type": "string",
"enum": ["trace", "debug", "info", "success", "warn", "error", "fatal", "silent"]
},
"preset": {
"default": "node",
"description": "Preset configuration allowing a single value or a unique array values.",
"anyOf": [
{
"type": "string",
"enum": ["node", "deno", "git"]
},
{
"type": "array",
"items": {
"type": "string",
"enum": ["node", "deno"]
},
"uniqueItems": true
}
]
},
"version": {
"default": {
"strategy": "semver",
"defaultBump": "patch"
},
"type": "object",
"properties": {
"strategy": {
"default": "semver",
"description": "Determines how the next version is calculated.",
"type": "string",
"enum": ["semver"]
},
"defaultBump": {
"default": "patch",
"description": "The default level to bump the version when using the \"semver\" strategy.",
"type": "string"
}
},
"additionalProperties": false,
"description": "Configuration for versioning behavior."
},
"git": {
"default": {
"cleanWorkingDirectory": true,
"upstream": true,
"author": {
"name": "github-actions[bot]",
"email": "41898282+github-actions[bot]@users.noreply.github.com"
},
"targetBranch": "main",
"add": true,
"commit": true,
"commitMessage": "Release {{REVOLA_VERSION}}",
"push": true,
"tag": true,
"tagFormat": "v{{REVOLA_VERSION}}",
"tagAnnotation": "Release {{REVOLA_VERSION}}",
"tagMajor": false,
"tagMinor": false
},
"type": "object",
"properties": {
"cleanWorkingDirectory": {
"default": true,
"description": "If true, Revola will check for a clean working directory before performing versioning operations.",
"type": "boolean"
},
"upstream": {
"default": true,
"description": "If true, Revola will check for an upstream branch and push to it by default when pushing new versions.",
"type": "boolean"
},
"author": {
"default": {
"name": "github-actions[bot]",
"email": "41898282+github-actions[bot]@users.noreply.github.com"
},
"type": "object",
"properties": {
"name": {
"default": "github-actions[bot]",
"description": "Name to use for release commits.",
"type": "string"
},
"email": {
"default": "41898282+github-actions[bot]@users.noreply.github.com",
"description": "Email to use for release commits.",
"type": "string",
"format": "email",
"pattern": "^[^\\s@\"]{1,64}@[^\\s@]{1,255}$"
}
},
"additionalProperties": false,
"description": "Overrides Git author identity ONLY for release commits (does not modify global Git config)."
},
"targetBranch": {
"default": "main",
"description": "The branch on which to perform versioning operations.",
"type": "string"
},
"add": {
"default": true,
"description": "If true, Revola will stage all changes before committing the new version.",
"type": "boolean"
},
"commit": {
"default": true,
"description": "If true, Revola will commit the new version.",
"type": "boolean"
},
"commitMessage": {
"default": "Release {{REVOLA_VERSION}}",
"type": "string"
},
"push": {
"default": true,
"description": "If true, Revola will push the new version to the remote repository.",
"type": "boolean"
},
"tag": {
"default": true,
"description": "If true, Revola will create a Git tag for the new version (e.g: v1.2.3).",
"type": "boolean"
},
"tagFormat": {
"default": "v{{REVOLA_VERSION}}",
"description": "Template for Git tag names.",
"type": "string"
},
"tagAnnotation": {
"default": "Release {{REVOLA_VERSION}}",
"description": "The annotation to use for Git tags created by Revola.",
"type": "string"
},
"tagMajor": {
"default": false,
"description": "If true, Revola will create a Git tag for major version releases (e.g: v1.2.3 -> v1).",
"type": "boolean"
},
"tagMinor": {
"default": false,
"description": "If true, Revola will create a Git tag for minor version releases (e.g: v1.2.3 -> v1.2).",
"type": "boolean"
}
},
"additionalProperties": false,
"description": "Configuration for Git-related settings in Revola."
},
"npm": {
"default": {
"publish": true,
"registry": "https://registry.npmjs.org/",
"tokenRef": "NPM_TOKEN",
"packageManager": "npm",
"tag": "latest",
"access": "public",
"provenance": false
},
"type": "object",
"properties": {
"publish": {
"default": true,
"description": "Whether to publish to npm.",
"type": "boolean"
},
"registry": {
"default": "https://registry.npmjs.org/",
"description": "The npm registry URL to publish to.",
"type": "string",
"format": "uri"
},
"tokenRef": {
"default": "NPM_TOKEN",
"description": "Environment variable name that holds the registry auth token.",
"type": "string"
},
"packageManager": {
"default": "npm",
"description": "The package manager used to invoke the npm publish command.",
"type": "string",
"enum": ["npm", "pnpm", "yarn", "bun"]
},
"tag": {
"default": "latest",
"description": "The dist-tag to publish under (e.g. latest, next, beta).",
"type": "string"
},
"access": {
"default": "public",
"description": "Package access level on npm.",
"type": "string",
"enum": ["public", "restricted"]
},
"provenance": {
"default": false,
"description": "Whether to publish with npm provenance (requires CI environment).",
"type": "boolean"
}
},
"additionalProperties": false,
"description": "npm publish configuration"
},
"jsr": {
"default": {
"publish": false,
"tokenRef": "JSR_TOKEN",
"packageManager": "npx"
},
"type": "object",
"properties": {
"publish": {
"default": false,
"description": "Whether to publish to JSR.",
"type": "boolean"
},
"publishArgs": {
"type": "array",
"items": {
"type": "string",
"enum": ["--allow-dirty", "--allow-slow-types", "--no-provenance"]
},
"uniqueItems": true,
"description": "Additional arguments to pass to the JSR publish command."
},
"tokenRef": {
"default": "JSR_TOKEN",
"description": "Environment variable name that holds the registry auth token (e.g. \"JSR_TOKEN\").",
"type": "string"
},
"packageManager": {
"default": "npx",
"description": "The package manager used to invoke the JSR publish command.",
"type": "string",
"enum": ["deno", "npx"]
}
},
"additionalProperties": false,
"description": "jsr publish configuration"
},
"changelog": {
"default": {
"enabled": true,
"file": "CHANGELOG.md",
"title": "{{REVOLA_VERSION}} ({{REVOLA_DATE}})",
"includeTypes": [
"BREAKING CHANGE",
"feat",
"fix",
"perf",
"refactor",
"docs",
"deps",
"ci",
"chore"
]
},
"type": "object",
"properties": {
"enabled": {
"default": true,
"description": "Whether to generate/update the changelog.",
"type": "boolean"
},
"file": {
"default": "CHANGELOG.md",
"description": "Path to the changelog file.",
"type": "string"
},
"title": {
"default": "{{REVOLA_VERSION}} ({{REVOLA_DATE}})",
"description": "Template for release title.",
"type": "string"
},
"includeTypes": {
"default": [
"BREAKING CHANGE",
"feat",
"fix",
"perf",
"refactor",
"docs",
"deps",
"ci",
"chore"
],
"description": "List of commit types to include in the changelog. If empty or not provided, all commit types are included. The order matters and determines how sections are organized in the final changelog.",
"type": "array",
"items": {
"type": "string",
"enum": [
"feat",
"fix",
"docs",
"style",
"refactor",
"perf",
"test",
"build",
"ci",
"chore",
"revert",
"deps",
"config",
"security",
"types",
"lint",
"format",
"release",
"meta",
"infra",
"hotfix",
"version",
"workflow",
"package",
"workspace",
"api",
"BREAKING CHANGE",
"db",
"data",
"ui",
"ux",
"accessibility",
"backend",
"frontend",
"logging",
"monitoring",
"stability",
"optimization",
"dx",
"tooling",
"scripts",
"cleanup",
"migration",
"rollback"
]
},
"uniqueItems": true
}
},
"additionalProperties": false,
"description": "Changelog configuration"
},
"hooks": {
"type": "object",
"propertyNames": {
"type": "string",
"pattern": "^(before|after):(init|version|git|publish|changelog)$"
},
"additionalProperties": {
"anyOf": [
{
"type": "string",
"minLength": 1
},
{
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
}
]
},
"description": "Shell commands to run at various lifecycle stages. Each key is a lifecycle hook name and the value is the command(s) to run."
},
"plugins": {
"type": "object",
"propertyNames": {
"type": "string",
"minLength": 1
},
"additionalProperties": {
"type": "object",
"properties": {},
"additionalProperties": {}
},
"description": "Defines plugins where each key is a plugin name and the value is its configuration object."
}
},
"additionalProperties": false
}