Skip to content

Commit 070cc7d

Browse files
author
Petr Sramek
committed
gfgsd
1 parent 3a14e2e commit 070cc7d

File tree

1 file changed

+70
-77
lines changed

1 file changed

+70
-77
lines changed

.gitversion/version.yml

Lines changed: 70 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -36,88 +36,81 @@ ignore:
3636
sha: []
3737
# Branch settings
3838
branches:
39-
main:
40-
regex: ^master$|^main$
41-
mode: ContinuousDelivery
42-
tag: ''
43-
increment: Patch
44-
prevent-increment-of-merged-branch-version: true
45-
track-merge-target: false
46-
source-branches: [ 'develop', 'release' ]
47-
tracks-release-branches: false
48-
is-release-branch: false
49-
is-mainline: true
50-
pre-release-weight: 55000
51-
develop:
52-
regex: ^dev(elop)?(ment)?$
53-
mode: ContinuousDeployment
54-
tag: alpha
55-
increment: Minor
56-
prevent-increment-of-merged-branch-version: false
57-
track-merge-target: true
58-
source-branches: []
59-
tracks-release-branches: true
60-
is-release-branch: false
61-
is-mainline: false
62-
pre-release-weight: 0
39+
# Release branch - branch tracks history for specific version
6340
release:
64-
regex: ^release?[/-]
65-
mode: ContinuousDelivery
66-
tag: beta
67-
increment: None
68-
prevent-increment-of-merged-branch-version: true
69-
track-merge-target: false
70-
source-branches: [ 'develop', 'main', 'support', 'release' ]
71-
tracks-release-branches: false
41+
mode: ContinuousDeployment
42+
regex: ^(release[\/][\d]+\.[\d]+)$
43+
increment: Inherit
7244
is-release-branch: true
73-
is-mainline: false
74-
pre-release-weight: 30000
45+
# Preview branch - branch accumulates changes for specific version before it is first released
46+
preview:
47+
mode: ContinuousDeployment
48+
regex: ^(release[\/][\d]+\.[\d]+\/preview)$
49+
increment: Inherit
50+
source-branches:
51+
- release
52+
# Hotfix branch - branch hotfixes a critical bug for specific version after it was first released
53+
hotfix:
54+
mode: ContinuousDeployment
55+
label: '{BranchName}'
56+
increment: Inherit
57+
regex: ^hotfix?[/-](?<BranchName>.+)
58+
tracks-release-branches: true
59+
source-branches:
60+
- release
61+
# Support branch - branch accumulates changes for specific version after it was first released
62+
support:
63+
mode: ContinuousDeployment
64+
regex: ^(release[\/][\d]+\.[\d]+\/support)$
65+
increment: Inherit
66+
source-branches:
67+
- release
68+
# Bugfixes branch - branch hotfixes bugs for specific version after it was first released
69+
bugfix:
70+
mode: ContinuousDeployment
71+
label: '{BranchName}'
72+
increment: Inherit
73+
regex: ^bugfix?[/-](?<BranchName>.+)
74+
tracks-release-branches: true
75+
source-branches:
76+
- support
77+
# Feature branch - branch accumulates changes for specific version after it was first released
7578
feature:
76-
regex: ^feature?[/-]
7779
mode: ContinuousDeployment
78-
tag: useBranchName
80+
label: '{BranchName}'
7981
increment: Inherit
80-
prevent-increment-of-merged-branch-version: false
81-
track-merge-target: false
82-
source-branches: [ 'develop', 'main', 'release', 'feature', 'support', 'hotfix' ]
83-
tracks-release-branches: false
84-
is-release-branch: false
85-
is-mainline: false
86-
pre-release-weight: 30000
82+
regex: ^feature?[/-](?<BranchName>.+)$
83+
tracks-release-branches: true
84+
source-branches:
85+
- preview
86+
# PR branch - branch merges a source branch to a target branch
8787
pull-request:
88+
mode: ContinuousDeployment
89+
label: pull-request
90+
increment: Inherit
91+
label-number-pattern: '[/-](?<number>\d+)'
8892
regex: ^(pull|pull\-requests|pr)[/-]
89-
mode: ContinuousDelivery
90-
tag: PullRequest
93+
source-branches:
94+
- main
95+
- release
96+
- preview
97+
- hotfix
98+
- support
99+
- bugfix
100+
- feature
101+
# Main branch - branch tracks historical changes between releases
102+
main:
103+
mode: ManualDeployment
91104
increment: Inherit
92-
prevent-increment-of-merged-branch-version: false
93-
tag-number-pattern: '[/-](?<number>\d+)[-/]'
94-
track-merge-target: false
95-
source-branches: [ 'develop', 'main', 'release', 'feature', 'support', 'hotfix' ]
96-
tracks-release-branches: false
97-
is-release-branch: false
98-
is-mainline: false
99-
pre-release-weight: 30000
100-
hotfix:
101-
regex: ^hotfix(es)?[/-]
102-
mode: ContinuousDelivery
103-
tag: beta
104-
increment: Patch
105-
prevent-increment-of-merged-branch-version: false
106-
track-merge-target: false
107-
source-branches: [ 'develop', 'main', 'support' ]
108-
tracks-release-branches: false
109-
is-release-branch: false
110-
is-mainline: false
111-
pre-release-weight: 30000
112-
support:
113-
regex: ^support[/-]
114-
mode: ContinuousDelivery
115-
tag: ''
116-
increment: Patch
117-
prevent-increment-of-merged-branch-version: true
118-
track-merge-target: false
119-
source-branches: [ 'main' ]
120-
tracks-release-branches: false
121-
is-release-branch: false
122-
is-mainline: true
123-
pre-release-weight: 55000
105+
regex: ^main$
106+
tracks-release-branches: true
107+
is-main-branch: true
108+
source-branches:
109+
- release
110+
# Any other branch - branch tracks historical changes between releases
111+
unknown:
112+
mode: ManualDeployment
113+
label: '{BranchName}'
114+
increment: Inherit
115+
regex: (?<BranchName>.+)
116+
source-branches: [ 'main', 'release', 'preview', 'hotfix', 'support', 'support', 'bugfix', 'feature', 'pull-request' ]

0 commit comments

Comments
 (0)