-
Notifications
You must be signed in to change notification settings - Fork 654
/
Copy pathGitVersion.configuration.json
560 lines (560 loc) · 16.1 KB
/
GitVersion.configuration.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
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://gitversion.net/schemas/6.0/GitVersion.configuration.json",
"title": "GitVersion Configuration",
"description": "GitVersion configuration schema",
"type": "object",
"properties": {
"assembly-file-versioning-format": {
"description": "Specifies the format of AssemblyFileVersion and overwrites the value of assembly-file-versioning-scheme.",
"type": "string"
},
"assembly-file-versioning-scheme": {
"description": "The scheme to use when setting AssemblyFileVersion attribute. Can be \u0027MajorMinorPatchTag\u0027, \u0027MajorMinorPatch\u0027, \u0027MajorMinor\u0027, \u0027Major\u0027, \u0027None\u0027.",
"enum": [
"MajorMinorPatchTag",
"MajorMinorPatch",
"MajorMinor",
"Major",
"None"
]
},
"assembly-informational-format": {
"description": "Specifies the format of AssemblyInformationalVersion. The default value is {InformationalVersion}.",
"type": "string"
},
"assembly-versioning-format": {
"description": "Specifies the format of AssemblyVersion and overwrites the value of assembly-versioning-scheme.",
"type": "string"
},
"assembly-versioning-scheme": {
"description": "The scheme to use when setting AssemblyVersion attribute. Can be \u0027MajorMinorPatchTag\u0027, \u0027MajorMinorPatch\u0027, \u0027MajorMinor\u0027, \u0027Major\u0027, \u0027None\u0027.",
"enum": [
"MajorMinorPatchTag",
"MajorMinorPatch",
"MajorMinor",
"Major",
"None"
]
},
"branches": {
"description": "The header for all the individual branch configuration.",
"type": "object",
"additionalProperties": {
"$ref": "#/$defs/BranchConfiguration"
}
},
"commit-date-format": {
"format": "date-time",
"pattern": "\u0027yyyy-MM-dd\u0027",
"description": "The format to use when calculating the commit date. Defaults to \u0027yyyy-MM-dd\u0027.",
"type": "string"
},
"commit-message-incrementing": {
"$ref": "#/$defs/Nullable\u00601"
},
"ignore": {
"description": "The header property for the ignore configuration.",
"type": "object",
"properties": {
"commits-before": {
"$ref": "#/$defs/Nullable\u006019"
},
"sha": {
"$ref": "#/$defs/array2"
}
}
},
"increment": {
"$ref": "#/$defs/IncrementStrategy"
},
"is-mainline": {
"$ref": "#/$defs/Nullable\u006011"
},
"is-release-branch": {
"$ref": "#/$defs/Nullable\u006012"
},
"is-source-branch-for": {
"$ref": "#/$defs/array"
},
"label": {
"$ref": "#/$defs/string"
},
"label-number-pattern": {
"$ref": "#/$defs/string1"
},
"major-version-bump-message": {
"format": "regex",
"pattern": "\u0027\\\u002Bsemver:\\s?(breaking|major)\u0027",
"description": "The regular expression to match commit messages with to perform a major version increment. Default set to \u0027\\\u002Bsemver:\\s?(breaking|major)\u0027",
"type": "string"
},
"merge-message-formats": {
"description": "Custom merge message formats to enable identification of merge messages that do not follow the built-in conventions.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"minor-version-bump-message": {
"format": "regex",
"pattern": "\u0027\\\u002Bsemver:\\s?(feature|minor)\u0027",
"description": "The regular expression to match commit messages with to perform a minor version increment. Default set to \u0027\\\u002Bsemver:\\s?(feature|minor)\u0027",
"type": "string"
},
"next-version": {
"description": "Allows you to bump the next version explicitly. Useful for bumping main or a feature branch with breaking changes",
"type": "string"
},
"no-bump-message": {
"format": "regex",
"pattern": "\u0027\\\u002Bsemver:\\s?(none|skip)\u0027",
"description": "Used to tell GitVersion not to increment when in Mainline development mode. . Default set to \u0027\\\u002Bsemver:\\s?(none|skip)\u0027",
"type": "string"
},
"patch-version-bump-message": {
"format": "regex",
"pattern": "\u0027\\\u002Bsemver:\\s?(fix|patch)\u0027",
"description": "The regular expression to match commit messages with to perform a patch version increment. Default set to \u0027\\\u002Bsemver:\\s?(fix|patch)\u0027",
"type": "string"
},
"pre-release-weight": {
"$ref": "#/$defs/Nullable\u006013"
},
"prevent-increment-of-merged-branch-version": {
"$ref": "#/$defs/Nullable\u006014"
},
"regex": {
"$ref": "#/$defs/string2"
},
"semantic-version-format": {
"description": "Specifies the semantic version format that is used when parsing the string. Can be \u0027Strict\u0027 or \u0027Loose\u0027.",
"enum": [
"Strict",
"Loose"
]
},
"source-branches": {
"$ref": "#/$defs/array1"
},
"tag-prefix": {
"description": "A regular expression which is used to trim Git tags before processing. Defaults to [vV]?",
"type": "string"
},
"tag-pre-release-weight": {
"description": "The pre-release weight in case of tagged commits. Defaults to 60000.",
"type": [
"integer",
"null"
]
},
"track-merge-message": {
"$ref": "#/$defs/Nullable\u006015"
},
"track-merge-target": {
"$ref": "#/$defs/Nullable\u006016"
},
"tracks-release-branches": {
"$ref": "#/$defs/Nullable\u006017"
},
"update-build-number": {
"description": "Whether to update the build number in the project file. Defaults to true.",
"type": "boolean"
},
"version-in-branch-pattern": {
"description": "A regular expression which is used to determine the version number in the branch name or commit message (e.g., v1.0.0-LTS). The default value is \u0027(?\u003Cversion\u003E[vV]?\\d\u002B(\\.\\d\u002B)?(\\.\\d\u002B)?).*\u0027.",
"type": "string"
},
"mode": {
"$ref": "#/$defs/Nullable\u006018"
},
"workflow": {
"description": "The base template of the configuration to use. Possible values are: GitFlow/v1 or GitHubFlow/v1",
"type": "string"
}
},
"$defs": {
"BranchConfiguration": {
"type": "object",
"properties": {
"commit-message-incrementing": {
"$ref": "#/$defs/Nullable\u00601"
},
"increment": {
"$ref": "#/$defs/IncrementStrategy"
},
"is-mainline": {
"$ref": "#/$defs/Nullable\u006011"
},
"is-release-branch": {
"$ref": "#/$defs/Nullable\u006012"
},
"is-source-branch-for": {
"$ref": "#/$defs/array"
},
"label": {
"$ref": "#/$defs/string"
},
"label-number-pattern": {
"$ref": "#/$defs/string1"
},
"pre-release-weight": {
"$ref": "#/$defs/Nullable\u006013"
},
"prevent-increment-of-merged-branch-version": {
"$ref": "#/$defs/Nullable\u006014"
},
"regex": {
"$ref": "#/$defs/string2"
},
"source-branches": {
"$ref": "#/$defs/array1"
},
"track-merge-message": {
"$ref": "#/$defs/Nullable\u006015"
},
"track-merge-target": {
"$ref": "#/$defs/Nullable\u006016"
},
"tracks-release-branches": {
"$ref": "#/$defs/Nullable\u006017"
},
"mode": {
"$ref": "#/$defs/Nullable\u006018"
}
}
},
"Nullable\u00601": {
"description": "Sets whether it should be possible to increment the version with special syntax in the commit message. Can be \u0027Disabled\u0027, \u0027Enabled\u0027 or \u0027MergeMessageOnly\u0027.",
"enum": [
"Enabled",
"Disabled",
"MergeMessageOnly"
]
},
"IncrementStrategy": {
"description": "The increment strategy for this branch. Can be \u0027Inherit\u0027, \u0027Patch\u0027, \u0027Minor\u0027, \u0027Major\u0027, \u0027None\u0027.",
"enum": [
"None",
"Major",
"Minor",
"Patch",
"Inherit"
]
},
"Nullable\u006011": {
"description": "When using Mainline mode, this indicates that this branch is a mainline. By default main and support/* are mainlines.",
"type": [
"boolean",
"null"
]
},
"Nullable\u006012": {
"description": "Indicates this branch configuration represents a release branch in GitFlow.",
"type": [
"boolean",
"null"
]
},
"array": {
"description": "The branches that this branch is a source branch.",
"type": "array",
"items": {
"description": "The branches that this branch is a source branch.",
"type": "string"
}
},
"string": {
"description": "The label to use for this branch. Use the value {BranchName} or similar as a placeholder to insert a named capture group from RegularExpression (fx. the branch name).",
"type": "string"
},
"string1": {
"format": "regex",
"pattern": "[/-](?\u003Cnumber\u003E\\d\u002B)[-/]",
"description": "The regular expression pattern to use to extract the number from the branch name. Defaults to \u0027[/-](?\u003Cnumber\u003E\\d\u002B)[-/]\u0027.",
"type": "string"
},
"Nullable\u006013": {
"description": "Provides a way to translate the PreReleaseLabel to a number.",
"type": [
"integer",
"null"
]
},
"Nullable\u006014": {
"description": "Prevent increment of merged branch version.",
"type": [
"boolean",
"null"
]
},
"string2": {
"description": "The regular expression pattern to use to match this branch.",
"type": "string"
},
"array1": {
"description": "The source branches for this branch.",
"type": "array",
"items": {
"description": "The source branches for this branch.",
"type": "string"
}
},
"Nullable\u006015": {
"description": "This property is a branch related property and gives the user the possibility to control the behavior of whether the merge commit message will be interpreted as a next version or not.",
"type": [
"boolean",
"null"
]
},
"Nullable\u006016": {
"description": "Strategy which will look for tagged merge commits directly off the current branch.",
"type": [
"boolean",
"null"
]
},
"Nullable\u006017": {
"description": "Indicates this branch configuration represents develop in GitFlow.",
"type": [
"boolean",
"null"
]
},
"Nullable\u006018": {
"description": "The versioning mode for this branch. Can be \u0027ContinuousDelivery\u0027, \u0027ContinuousDeployment\u0027, \u0027Mainline\u0027.",
"enum": [
"ContinuousDelivery",
"ContinuousDeployment",
"Mainline"
]
},
"DateTimeOffset": {
"type": [
"object",
"null"
],
"properties": {
"date": {
"$ref": "#/$defs/DateTime"
},
"date-time": {
"$ref": "#/$defs/DateTime"
},
"day": {
"$ref": "#/$defs/integer"
},
"day-of-week": {
"enum": [
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
],
"readOnly": true
},
"day-of-year": {
"$ref": "#/$defs/integer"
},
"hour": {
"$ref": "#/$defs/integer"
},
"local-date-time": {
"$ref": "#/$defs/DateTime"
},
"microsecond": {
"$ref": "#/$defs/integer"
},
"millisecond": {
"$ref": "#/$defs/integer"
},
"minute": {
"$ref": "#/$defs/integer"
},
"month": {
"$ref": "#/$defs/integer"
},
"nanosecond": {
"$ref": "#/$defs/integer"
},
"offset": {
"$ref": "#/$defs/TimeSpan"
},
"second": {
"$ref": "#/$defs/integer"
},
"ticks": {
"$ref": "#/$defs/integer1"
},
"time-of-day": {
"$ref": "#/$defs/TimeSpan"
},
"utc-date-time": {
"$ref": "#/$defs/DateTime"
},
"utc-ticks": {
"$ref": "#/$defs/integer1"
},
"year": {
"$ref": "#/$defs/integer"
}
}
},
"DateTime": {
"type": "string",
"format": "date-time",
"readOnly": true
},
"integer": {
"type": "integer",
"readOnly": true
},
"integer1": {
"type": "integer",
"readOnly": true
},
"number": {
"type": "number",
"readOnly": true
},
"TimeSpan": {
"type": "object",
"properties": {
"days": {
"$ref": "#/$defs/integer"
},
"hours": {
"$ref": "#/$defs/integer"
},
"microseconds": {
"$ref": "#/$defs/integer"
},
"milliseconds": {
"$ref": "#/$defs/integer"
},
"minutes": {
"$ref": "#/$defs/integer"
},
"nanoseconds": {
"$ref": "#/$defs/integer"
},
"seconds": {
"$ref": "#/$defs/integer"
},
"ticks": {
"$ref": "#/$defs/integer1"
},
"total-days": {
"$ref": "#/$defs/number"
},
"total-hours": {
"$ref": "#/$defs/number"
},
"total-microseconds": {
"$ref": "#/$defs/number"
},
"total-milliseconds": {
"$ref": "#/$defs/number"
},
"total-minutes": {
"$ref": "#/$defs/number"
},
"total-nanoseconds": {
"$ref": "#/$defs/number"
},
"total-seconds": {
"$ref": "#/$defs/number"
}
},
"readOnly": true
},
"Nullable\u006019": {
"format": "date-time",
"pattern": "\u0027yyyy-MM-ddTHH:mm:ss\u0027",
"description": "Commits before this date will be ignored. Format: yyyy-MM-ddTHH:mm:ss.",
"type": [
"object",
"null"
],
"properties": {
"date": {
"$ref": "#/$defs/DateTime"
},
"date-time": {
"$ref": "#/$defs/DateTime"
},
"day": {
"$ref": "#/$defs/integer"
},
"day-of-week": {
"enum": [
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
],
"readOnly": true
},
"day-of-year": {
"$ref": "#/$defs/integer"
},
"hour": {
"$ref": "#/$defs/integer"
},
"local-date-time": {
"$ref": "#/$defs/DateTime"
},
"microsecond": {
"$ref": "#/$defs/integer"
},
"millisecond": {
"$ref": "#/$defs/integer"
},
"minute": {
"$ref": "#/$defs/integer"
},
"month": {
"$ref": "#/$defs/integer"
},
"nanosecond": {
"$ref": "#/$defs/integer"
},
"offset": {
"$ref": "#/$defs/TimeSpan"
},
"second": {
"$ref": "#/$defs/integer"
},
"ticks": {
"$ref": "#/$defs/integer1"
},
"time-of-day": {
"$ref": "#/$defs/TimeSpan"
},
"utc-date-time": {
"$ref": "#/$defs/DateTime"
},
"utc-ticks": {
"$ref": "#/$defs/integer1"
},
"year": {
"$ref": "#/$defs/integer"
}
}
},
"array2": {
"description": "A sequence of SHAs to be excluded from the version calculations.",
"type": "array",
"items": {
"description": "A sequence of SHAs to be excluded from the version calculations.",
"type": "string"
}
}
}
}