-
Hi, I am stuck with gitversion configuration and could use some help. I am not even sure if the behavior I try to achieve is possible at all.
Goal
Current configuration
mode: ContinuousDeployment
major-version-bump-message: '\s?(breaking|major|breaking\schange)'
minor-version-bump-message: '(adds?|features?|minor)\b'
patch-version-bump-message: '\s?(fix|patch)'
no-bump-message: '\+semver:\s?(none|skip)'
branches:
main:
increment: Minor
regex: ^master$|^main$
is-main-branch: true
anyOther:
increment: Minor
regex: ^(?!master$|main$).* Issue
It almost feels like I am not able to 'decrease the default increment version part' Not working patch increment
❯ git l -n2
# This should have been a patch -> increment patch level
* 75b783e (HEAD -> master) 25 minutes ago +semver: patch (...)
# This is version 3.0.0 with a tag
* 9caf021 (tag: 3.0.0) 28 minutes ago Squashed commit of the following: (...)
# gitversion increments the minor version
❯ dotnet-gitversion
{
"AssemblySemFileVer": "3.1.0.0",
"AssemblySemVer": "3.1.0.0",
"BranchName": "master",
"BuildMetaData": null,
"CommitDate": "2025-08-26",
"CommitsSinceVersionSource": 1,
"EscapedBranchName": "master",
"FullBuildMetaData": "Branch.master.Sha.75b783e97896d6ff1c9ec1940589230bdbe1194b",
"FullSemVer": "3.1.0",
"InformationalVersion": "3.1.0+Branch.master.Sha.75b783e97896d6ff1c9ec1940589230bdbe1194b",
"Major": 3,
"MajorMinorPatch": "3.1.0",
"Minor": 1,
"Patch": 0,
"PreReleaseLabel": "",
"PreReleaseLabelWithDash": "",
"PreReleaseNumber": null,
"PreReleaseTag": "",
"PreReleaseTagWithDash": "",
"SemVer": "3.1.0",
"Sha": "75b783e97896d6ff1c9ec1940589230bdbe1194b",
"ShortSha": "75b783e",
"UncommittedChanges": 0,
"VersionSourceSha": "9caf0219f39d5f97235328bdcdd77d147c613c3a",
"WeightedPreReleaseNumber": 60000
} Working major increment❯ git l -n3
* ac78aca (HEAD -> master) 7 seconds ago +semver: major (...)
* 75b783e 28 minutes ago +semver: patch (...)
* 9caf021 (tag: 3.0.0) 31 minutes ago Squashed commit of the following: (...)
❯ dotnet-gitversion
{
"AssemblySemFileVer": "4.0.0.0",
"AssemblySemVer": "4.0.0.0",
"BranchName": "master",
"BuildMetaData": null,
"CommitDate": "2025-08-26",
"CommitsSinceVersionSource": 2,
"EscapedBranchName": "master",
"FullBuildMetaData": "Branch.master.Sha.ac78acaa94bfd91a701e0108a0734333c1709b82",
"FullSemVer": "4.0.0",
"InformationalVersion": "4.0.0+Branch.master.Sha.ac78acaa94bfd91a701e0108a0734333c1709b82",
"Major": 4,
"MajorMinorPatch": "4.0.0",
"Minor": 0,
"Patch": 0,
"PreReleaseLabel": "",
"PreReleaseLabelWithDash": "",
"PreReleaseNumber": null,
"PreReleaseTag": "",
"PreReleaseTagWithDash": "",
"SemVer": "4.0.0",
"Sha": "ac78acaa94bfd91a701e0108a0734333c1709b82",
"ShortSha": "ac78aca",
"UncommittedChanges": 0,
"VersionSourceSha": "9caf0219f39d5f97235328bdcdd77d147c613c3a",
"WeightedPreReleaseNumber": 60000
} Is there a way to achieve my intended behavior with a configuration? I know I could change the default increment to patch and use |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Please see #3494 (comment) and #4143 (reply in thread) The following feature is ready for implementation: |
Beta Was this translation helpful? Give feedback.
Please see #3494 (comment) and #4143 (reply in thread)
The following feature is ready for implementation: