-
Notifications
You must be signed in to change notification settings - Fork 370
/
config.json
448 lines (448 loc) · 17.2 KB
/
config.json
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
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "release-please manifest config schema",
"description": "Schema for defining manifest config file",
"type": "object",
"additionalProperties": false,
"definitions": {
"ReleaserConfigOptions": {
"type": "object",
"properties": {
"release-type": {
"description": "The strategy to use for this component.",
"type": "string"
},
"bump-minor-pre-major": {
"description": "Breaking changes only bump semver minor if version < 1.0.0",
"type": "boolean"
},
"bump-patch-for-minor-pre-major": {
"description": "Feature changes only bump semver patch if version < 1.0.0",
"type": "boolean"
},
"prerelease-type": {
"description": "Configuration option for the prerelese versioning strategy. If prerelease strategy used and type set, will set the prerelese part of the version to the provided value in case prerelease part is not present.",
"type": "string"
},
"versioning": {
"description": "Versioning strategy. Defaults to `default`",
"type": "string"
},
"changelog-sections": {
"description": "Override the Changelog configuration sections",
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"description": "Semantic commit type (e.g. `feat`, `chore`)",
"type": "string"
},
"section": {
"description": "Changelog section title",
"type": "string"
},
"hidden": {
"description": "Skip displaying this type of commit. Defaults to `false`.",
"type": "boolean"
}
},
"required": ["type", "section"]
}
},
"release-as": {
"description": "[DEPRECATED] Override the next version of this package. Consider using a `Release-As` commit instead.",
"type": "string"
},
"skip-github-release": {
"description": "Skip tagging GitHub releases for this package. Release-Please still requires releases to be tagged, so this option should only be used if you have existing infrastructure to tag these releases.Defaults to `false`.",
"type": "boolean"
},
"draft": {
"description": "Create the GitHub release in draft mode. Defaults to `false`.",
"type": "boolean"
},
"prerelease": {
"description": "Create the GitHub release as prerelease. Defaults to `false`.",
"type": "boolean"
},
"draft-pull-request": {
"description": "Open the release pull request in draft mode. Defaults to `false`.",
"type": "boolean"
},
"extra-label": {
"description": "Comma-separated list of labels to add to a newly opened pull request",
"type": "string"
},
"include-component-in-tag": {
"description": "When tagging a release, include the component name as part of the tag. Defaults to `true`.",
"type": "boolean"
},
"include-v-in-tag": {
"description": "When tagging a release, include `v` in the tag. Defaults to `false`.",
"type": "boolean"
},
"changelog-type": {
"description": "The type of changelog to use. Defaults to `default`.",
"type": "string",
"enum": ["default", "github"]
},
"changelog-host": {
"description": "Generate changelog links to this GitHub host. Useful for running against GitHub Enterprise.",
"type": "string"
},
"changelog-path": {
"description": "Path to the file that tracks release note changes. Defaults to `CHANGELOG.md`.",
"type": "string"
},
"pull-request-title-pattern": {
"description": "Customize the release pull request title.",
"type": "string"
},
"pull-request-header": {
"description": "Customize the release pull request header.",
"type": "string"
},
"pull-request-footer": {
"description": "Customize the release pull request footer.",
"type": "string"
},
"separate-pull-requests": {
"description": "Open a separate release pull request for each component. Defaults to `false`.",
"type": "boolean"
},
"tag-separator": {
"description": "Customize the separator between the component and version in the GitHub tag.",
"type": "string"
},
"extra-files": {
"description": "Specify extra generic files to replace versions.",
"type": "array",
"items": {
"anyOf": [
{
"description": "The path to the file. The `Generic` updater uses annotations to replace versions.",
"type": "string"
},
{
"description": "An extra JSON, YAML, or TOML file with a targeted update via jsonpath.",
"type": "object",
"properties": {
"type": {
"description": "The file format type.",
"enum": ["json", "toml", "yaml"]
},
"path": {
"description": "The path to the file.",
"type": "string"
},
"glob": {
"description": "Whether to treat the path as a glob. Defaults to `false`.",
"type": "boolean"
},
"jsonpath": {
"description": "The jsonpath to the version entry in the file.",
"type": "string"
}
},
"required": ["type", "path", "jsonpath"]
},
{
"description": "An extra XML file with a targeted update via xpath.",
"type": "object",
"properties": {
"type": {
"description": "The file format type.",
"enum": ["xml"]
},
"path": {
"description": "The path to the file.",
"type": "string"
},
"glob": {
"description": "Whether to treat the path as a glob. Defaults to `false`.",
"type": "boolean"
},
"xpath": {
"description": "The xpath to the version entry in the file.",
"type": "string"
}
},
"required": ["type", "path", "xpath"]
},
{
"description": "An extra pom.xml file.",
"type": "object",
"properties": {
"type": {
"description": "The file format type.",
"enum": ["pom"]
},
"path": {
"description": "The path to the file.",
"type": "string"
},
"glob": {
"description": "Whether to treat the path as a glob. Defaults to `false`.",
"type": "boolean"
}
},
"required": ["type", "path"]
}
]
}
},
"exclude-paths": {
"description": "Path of commits to be excluded from parsing. If all files from commit belong to one of the paths it will be skipped",
"type": "array",
"items": {
"type": "string"
}
},
"version-file": {
"description": "Path to the specialize version file. Used by `ruby` and `simple` strategies.",
"type": "string"
},
"snapshot-label": {
"description": "Label to add to snapshot pull request. Used by `java` strategies.",
"type": "string"
},
"skip-snapshot": {
"description": "If set, do not propose snapshot pull requests. Used by `java` strategies.",
"type": "boolean"
},
"initial-version": {
"description": "Releases the initial library with a specified version",
"type": "string"
}
}
}
},
"allOf": [
{
"$ref": "#/definitions/ReleaserConfigOptions"
},
{
"properties": {
"$schema": {
"description": "Path to the release-please manifest config schema",
"type": "string",
"format": "uri-reference"
},
"packages": {
"description": "Per-path component configuration.",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/ReleaserConfigOptions"
}
},
"bootstrap-sha": {
"description": "For the initial release of a library, only consider as far back as this commit SHA. This is an uncommon use case and should generally be avoided.",
"type": "string"
},
"last-release-sha": {
"description": "For any release, only consider as far back as this commit SHA. This is an uncommon use case and should generally be avoided.",
"type": "string"
},
"always-link-local": {
"description": "When using the `node-workspace` plugin, force all local dependencies to be linked.",
"type": "boolean"
},
"plugins": {
"description": "Plugins to apply to pull requests. Plugins can be added to perform extra release processing that cannot be achieved by an individual release strategy.",
"type": "array",
"items": {
"anyOf": [
{
"description": "The plugin name for plugins that do not require other options.",
"type": "string"
},
{
"description": "Configuration for the `linked-versions` plugin.",
"type": "object",
"properties": {
"type": {
"description": "The name of the plugin.",
"type": "string",
"enum": ["linked-versions"]
},
"groupName": {
"description": "The name of the group of components.",
"type": "string"
},
"components": {
"description": "List of component names that are part of this group.",
"type": "array",
"items": {
"type": "string"
}
},
"merge": {
"description": "Whether to merge in-scope pull requests into a combined release pull request. Defaults to `true`.",
"type": "boolean"
},
"specialWords": {
"description": "Words that sentence casing logic will not be applied to",
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["type", "groupName", "components"]
},
{
"description": "Configuration for various `workspace` plugins.",
"type": "object",
"properties": {
"type": {
"description": "The name of the plugin.",
"type": "string",
"enum": [
"cargo-workspace",
"maven-workspace"
]
},
"updateAllPackages": {
"description": "Whether to force updating all packages regardless of the dependency tree. Defaults to `false`.",
"type": "boolean"
},
"merge": {
"description": "Whether to merge in-scope pull requests into a combined release pull request. Defaults to `true`.",
"type": "boolean"
},
"considerAllArtifacts": {
"description": "Whether to analyze all packages in the workspace for cross-component version bumping. This currently only works for the maven-workspace plugin. Defaults to `true`.",
"type": "boolean"
}
}
},
{
"description": "Configuration for various `workspace` plugins.",
"type": "object",
"properties": {
"type": {
"description": "The name of the plugin.",
"type": "string",
"enum": [
"node-workspace"
]
},
"updateAllPackages": {
"description": "Whether to force updating all packages regardless of the dependency tree. Defaults to `false`.",
"type": "boolean"
},
"merge": {
"description": "Whether to merge in-scope pull requests into a combined release pull request. Defaults to `true`.",
"type": "boolean"
},
"considerAllArtifacts": {
"description": "Whether to analyze all packages in the workspace for cross-component version bumping. This currently only works for the maven-workspace plugin. Defaults to `true`.",
"type": "boolean"
},
"updatePeerDependencies": {
"description": "Also bump peer dependency versions if they are modified. Defaults to `false`.",
"type": "boolean"
}
}
},
{
"description": "Configuration for various `group-priority` plugin",
"type": "object",
"properties": {
"type": {
"description": "The name of the plugin.",
"type": "string",
"enum": ["group-priority"]
},
"groups": {
"description": "Group names ordered with highest priority first.",
"type": "array",
"items": {
"type": "string"
}
}
}
},
{
"description": "Other plugins",
"type": "object",
"properties": {
"type": {
"description": "The name of the plugin.",
"type": "string"
}
}
}
]
}
},
"group-pull-request-title-pattern": {
"description": "When grouping multiple release pull requests use this pattern for the title.",
"type": "string"
},
"release-search-depth": {
"description": "When considering previously releases, only look this deep.",
"type": "number"
},
"commit-search-depth": {
"description": "When considering commit history, only look this many commits deep.",
"type": "number"
},
"sequential-calls": {
"description": "Whether to open pull requests/releases sequentially rather than concurrently. If you have many components, you may want to set this to avoid secondary rate limits.",
"type": "boolean"
},
"label": {
"description": "Comma-separated list of labels to add to newly opened pull request. These are used to identify release pull requests.",
"type": "string"
},
"release-label": {
"description": "Comma-separated list of labels to add to a pull request that has been released/tagged",
"type": "string"
}
},
"required": ["packages"]
}
],
"properties": {
"$schema": true,
"packages": true,
"bootstrap-sha": true,
"last-release-sha": true,
"always-link-local": true,
"plugins": true,
"group-pull-request-title-pattern": true,
"release-search-depth": true,
"commit-search-depth": true,
"sequential-calls": true,
"release-type": true,
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"versioning": true,
"changelog-sections": true,
"release-as": true,
"skip-github-release": true,
"draft": true,
"prerelease": true,
"draft-pull-request": true,
"label": true,
"release-label": true,
"extra-label": true,
"include-component-in-tag": true,
"include-v-in-tag": true,
"changelog-type": true,
"changelog-host": true,
"changelog-path": true,
"pull-request-title-pattern": true,
"pull-request-header": true,
"pull-request-footer": true,
"separate-pull-requests": true,
"tag-separator": true,
"extra-files": true,
"version-file": true,
"snapshot-label": true,
"initial-version": true,
"exclude-paths": true
}
}