-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathGitVersion.yml
46 lines (44 loc) · 1.52 KB
/
GitVersion.yml
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
mode: mainline
commit-date-format: "yyyyMMddTHHmmss"
assembly-file-versioning-format: "{Major}.{Minor}.{Patch}.{env:GITHUB_RUN_NUMBER ?? 0}"
# This repo needs to use NuGetVersionV2 for compatibility with PowerShellGallery
assembly-informational-format: "{NuGetVersionV2}+Build.{env:GITHUB_RUN_NUMBER ?? local}.Branch.{EscapedBranchName}.Sha.{Sha}.Date.{CommitDate}"
major-version-bump-message: 'semver:\s?(breaking|major)'
minor-version-bump-message: 'semver:\s?(feature|minor)'
patch-version-bump-message: 'semver:\s?(fix|patch)'
no-bump-message: 'semver:\s?(none|skip)'
commit-message-incrementing: Enabled
branches:
main:
tag: "" # explicitly no tag for main builds
regex: ^main$
increment: Patch
is-mainline: true
tracks-release-branches: true
hotfix:
tag: rc
regex: hotfix(es)?/\d+\.\d+\.\d+
increment: None
is-release-branch: true
prevent-increment-of-merged-branch-version: true
source-branches: [ "main" ]
release:
tag: rc
regex: releases?/\d+\.\d+\.\d+
increment: None
is-release-branch: true
prevent-increment-of-merged-branch-version: true
source-branches: [ "main" ]
pull-request:
regex: pull/
tag: pr
tag-number-pattern: '[/-](?<number>\d+)'
increment: Patch
source-branches: [ "main", "feature", "release", "hotfix" ]
feature:
regex: .*/
tag: useBranchName
source-branches: [ "main", "feature" ]
track-merge-target: true
tracks-release-branches: true
increment: Patch