-
Notifications
You must be signed in to change notification settings - Fork 0
/
GitVersionConfig.yaml
50 lines (47 loc) · 1.41 KB
/
GitVersionConfig.yaml
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
assembly-versioning-scheme: MajorMinorPatch
mode: ContinuousDeployment
# It would be better to use smarter regexes instead of duplicating everything for local and remote cases.
# However, GitVersion has some built-in patterns which cannot be removed and these would cause clashes.
branches:
# These branch patterns cover all local cases
master:
regex: master
tag: master
increment: Minor
prevent-increment-of-merged-branch-version: true
feature:
regex: feature[/-]
tag: a{BranchName}
increment: Minor
prevent-increment-of-merged-branch-version: false
patch:
regex: patch[/-]
tag: useBranchName
increment: Patch
prevent-increment-of-merged-branch-version: false
release:
regex: release[/-]
tag: rc
increment: None
prevent-increment-of-merged-branch-version: false
# These branch patterns cover all remote cases
origin/master:
regex: origin/master
tag: master
increment: Minor
prevent-increment-of-merged-branch-version: true
origin/feature:
regex: origin/feature[/-]
tag: a{BranchName}
increment: Minor
prevent-increment-of-merged-branch-version: false
origin/patch:
regex: origin/patch[/-]
tag: useBranchName
increment: Patch
prevent-increment-of-merged-branch-version: false
origin/release:
regex: origin/release[/-]
tag: rc
increment: None
prevent-increment-of-merged-branch-version: false