@@ -52,6 +52,9 @@ major-version-bump-message: '\+semver:\s?(breaking|major)'
52
52
minor-version-bump-message : ' \+semver:\s?(feature|minor)'
53
53
patch-version-bump-message : ' \+semver:\s?(fix|patch)'
54
54
no-bump-message : ' \+semver:\s?(none|skip)'
55
+ legacy-semver-padding : 4
56
+ build-metadata-padding : 4
57
+ commits-since-version-source-padding : 4
55
58
tag-pre-release-weight : 60000
56
59
commit-message-incrementing : Enabled
57
60
ignore :
@@ -191,8 +194,23 @@ Used to tell GitVersion not to increment when in Mainline development mode.
191
194
Default `\+semver:\s?(none|skip)`, which will match occurrences of `+semver :
192
195
none` and `+semver : skip`
193
196
194
- When a commit matches **both** the `no-bump-message` **and** any combination of
195
- the `version-bump-message`, `no-bump-message` takes precedence and no increment is applied.
197
+ # ## legacy-semver-padding
198
+
199
+ The number of characters to pad `LegacySemVer` to in the `LegacySemVerPadded`
200
+ [variable][variables]. Default is `4`, which will pad the `LegacySemVer` value
201
+ of `3.0.0-beta1` to `3.0.0-beta0001`.
202
+
203
+ # ## build-metadata-padding
204
+
205
+ The number of characters to pad `BuildMetaData` to in the `BuildMetaDataPadded`
206
+ [variable][variables]. Default is `4`, which will pad the `BuildMetaData` value
207
+ of `1` to `0001`.
208
+
209
+ # ## commits-since-version-source-padding
210
+
211
+ The number of characters to pad `CommitsSinceVersionSource` to in the
212
+ ` CommitsSinceVersionSourcePadded` [variable][variables]. Default is `4`, which
213
+ will pad the `CommitsSinceVersionSource` value of `1` to `0001`.
196
214
197
215
# ## tag-pre-release-weight
198
216
@@ -329,24 +347,39 @@ branches:
329
347
feature:
330
348
regex: ^features?[/-]
331
349
mode: ContinuousDelivery
332
- tag: '{BranchName}'
350
+ tag: useBranchName
333
351
increment: Inherit
352
+ prevent-increment-of-merged-branch-version: false
353
+ track-merge-target: false
334
354
source-branches: [ 'develop', 'main', 'release', 'feature', 'support', 'hotfix' ]
335
- pre-release-weight: 30000
355
+ tracks-release-branches: false
356
+ is-release-branch: false
357
+ is-mainline: false
358
+ pre-release-weight: 30000
336
359
pull-request:
337
360
regex: ^(pull|pull\- requests|pr)[/-]
338
361
mode: ContinuousDelivery
339
362
tag: PullRequest
340
363
increment: Inherit
364
+ prevent-increment-of-merged-branch-version: false
341
365
tag-number-pattern: '[/-](?<number>\d +)[-/]'
366
+ track-merge-target: false
342
367
source-branches: [ 'develop', 'main', 'release', 'feature', 'support', 'hotfix' ]
368
+ tracks-release-branches: false
369
+ is-release-branch: false
370
+ is-mainline: false
343
371
pre-release-weight: 30000
344
372
hotfix:
345
373
regex: ^hotfix(es)?[/-]
346
374
mode: ContinuousDelivery
347
375
tag: beta
348
- increment: Inherit
349
- source-branches: [ 'release', 'main', 'support', 'hotfix' ]
376
+ increment: Patch
377
+ prevent-increment-of-merged-branch-version: false
378
+ track-merge-target: false
379
+ source-branches: [ 'develop', 'main', 'support' ]
380
+ tracks-release-branches: false
381
+ is-release-branch: false
382
+ is-mainline: false
350
383
pre-release-weight: 30000
351
384
support:
352
385
regex: ^support[/-]
@@ -510,7 +543,7 @@ branches:
510
543
511
544
Strategy which will look for tagged merge commits directly off the current
512
545
branch. For example `develop` → `release/1.0.0` → merge into `main` and tag
513
- ` 1.0.0` . The tag is _not_ on develop, but develop should be version `1.0.0` now.
546
+ ` 1.0.0` . The tag is *not* on develop, but develop should be version `1.0.0` now.
514
547
515
548
# ## tracks-release-branches
516
549
@@ -539,19 +572,6 @@ is set, it would be added to the `PreReleaseNumber` to get a final
539
572
` pre-release-weight` will be used in the calculation. Related Issues [1145][1145]
540
573
and [1366][1366].
541
574
542
- # ## semver-format
543
-
544
- Specifies the semver format that is used when parsing the string.
545
- Can be `Strict` - using the [regex](https://regex101.com/r/Ly7O1x/3/)
546
- or `Loose` the old way of parsing. The default if not specified is `Strict`
547
- Example of invalid `Strict`, but valid `Loose`
548
-
549
- ```
550
- 1.2-alpha4
551
- 01.02.03-rc03
552
- 1.2.3.4
553
- ```
554
-
555
575
[1145] : https://github.com/GitTools/GitVersion/issues/1145
556
576
[1366] : https://github.com/GitTools/GitVersion/issues/1366
557
577
[2506] : https://github.com/GitTools/GitVersion/pull/2506#issuecomment-754754037
0 commit comments