Skip to content

Commit

Permalink
Adopt the GitVersion config to properly handle pre-release tags
Browse files Browse the repository at this point in the history
Without "when-current-commit-tagged" set to "true", GitVersion would calculate the number of a commit tagged with 8.0.0-rc.1 to be 8.0.0-rc.2.

Also removed some of the settings that are the default.
  • Loading branch information
dennisdoomen committed Jan 5, 2025
1 parent da17a6a commit 6b76731
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions GitVersion.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
next-version: 7.0.0
workflow: GitHubFlow/v1
workflow: GitFlow/v1
commit-message-incrementing: Disabled
branches:
develop:
regex: ^dev(elop)?(ment)?$
label: alpha
increment: Minor
release:
regex: releases?[/-]
label: rc
increment: Patch
prevent-increment:
when-current-commit-tagged: true
pull-request:
mode: ContinuousDelivery
regex: ((pull|pull\-requests|pr)[/-]|[/-](merge))
label: pr
label-number-pattern: '[/-]?(?<number>\d+)'
prevent-increment:
of-merged-branch: false
ignore:
sha: []

0 comments on commit 6b76731

Please sign in to comment.