Skip to content

Commit 3a14e2e

Browse files
author
Petr Sramek
committed
sada
1 parent c707dde commit 3a14e2e

File tree

2 files changed

+203
-82
lines changed

2 files changed

+203
-82
lines changed

.gitversion/version (2).yml

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
# Global settings
2+
assembly-versioning-format: '{Major}.{Minor}.{Patch}.{env:BUILD_NUMBER ?? 0}'
3+
assembly-file-versioning-format: '{Major}.{Minor}.{Patch}.{env:BUILD_NUMBER ?? 0}'
4+
tag-prefix: '[vV]?'
5+
version-in-branch-pattern: (?<version>[vV]?\d+(\.\d+)?(\.\d+)?).*
6+
major-version-bump-message: ''
7+
minor-version-bump-message: ''
8+
patch-version-bump-message: ''
9+
no-bump-message: ''
10+
tag-pre-release-weight: 60000
11+
commit-date-format: yyyy-MM-dd
12+
merge-message-formats: {}
13+
update-build-number: false
14+
semantic-version-format: Strict
15+
strategies:
16+
- VersionInBranchName
17+
- TrackReleaseBranches
18+
mode: ContinuousDelivery
19+
label: ''
20+
increment: Patch
21+
prevent-increment:
22+
of-merged-branch: true
23+
when-branch-merged: true
24+
when-current-commit-tagged: true
25+
track-merge:
26+
target: false
27+
message: false
28+
commit-message-incrementing: Disabled
29+
regex: ''
30+
source-branches: []
31+
is-source-branch-for: []
32+
tracks-release-branches: false
33+
is-release-branch: false
34+
is-main-branch: false
35+
ignore:
36+
sha: []
37+
# Branch settings
38+
branches:
39+
# Release branch - branch tracks history for specific version
40+
release:
41+
mode: ContinuousDeployment
42+
regex: ^(release[\/][\d]+\.[\d]+)$
43+
increment: Inherit
44+
is-release-branch: true
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
78+
feature:
79+
mode: ContinuousDeployment
80+
label: '{BranchName}'
81+
increment: Inherit
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
87+
pull-request:
88+
mode: ContinuousDeployment
89+
label: pull-request
90+
increment: Inherit
91+
label-number-pattern: '[/-](?<number>\d+)'
92+
regex: ^(pull|pull\-requests|pr)[/-]
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
104+
increment: Inherit
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:
117+
- main
118+
- release
119+
- preview
120+
- hotfix
121+
- support
122+
- bugfix
123+
- feature
124+
- pull-request

.gitversion/version.yml

Lines changed: 79 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Global settings
2-
assembly-versioning-format: '{Major}.{Minor}.{Patch}.{env:BUILD_NUMBER ?? 42}'
3-
assembly-file-versioning-format: '{Major}.{Minor}.{Patch}.{env:BUILD_NUMBER ?? 42}'
2+
assembly-versioning-format: '{Major}.{Minor}.{Patch}.{env:BUILD_NUMBER ?? 0}'
3+
assembly-file-versioning-format: '{Major}.{Minor}.{Patch}.{env:BUILD_NUMBER ?? 0}'
44
tag-prefix: '[vV]?'
55
version-in-branch-pattern: (?<version>[vV]?\d+(\.\d+)?(\.\d+)?).*
66
major-version-bump-message: ''
@@ -36,91 +36,88 @@ ignore:
3636
sha: []
3737
# Branch settings
3838
branches:
39-
# Release branch - branch tracks history for specific version
40-
release:
41-
mode: ContinuousDeployment
42-
regex: ^(release[\/][\d]+\.[\d]+)
43-
increment: Inherit
44-
is-release-branch: true
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:
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)?$
7053
mode: ContinuousDeployment
71-
label: '{BranchName}'
72-
increment: Inherit
73-
regex: ^bugfix?[/-](?<BranchName>.+)
54+
tag: alpha
55+
increment: Minor
56+
prevent-increment-of-merged-branch-version: false
57+
track-merge-target: true
58+
source-branches: []
7459
tracks-release-branches: true
75-
source-branches:
76-
- support
77-
# Feature branch - branch accumulates changes for specific version after it was first released
60+
is-release-branch: false
61+
is-mainline: false
62+
pre-release-weight: 0
63+
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
72+
is-release-branch: true
73+
is-mainline: false
74+
pre-release-weight: 30000
7875
feature:
76+
regex: ^feature?[/-]
7977
mode: ContinuousDeployment
80-
label: '{BranchName}'
78+
tag: useBranchName
8179
increment: Inherit
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
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
8787
pull-request:
88-
mode: ContinuousDeployment
89-
label: pull-request
90-
increment: Inherit
91-
label-number-pattern: '[/-](?<number>\d+)'
9288
regex: ^(pull|pull\-requests|pr)[/-]
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
104-
increment: Inherit
105-
regex: ^main$
106-
tracks-release-branches: true
107-
prevent-increment:
108-
of-merged-branch: false
109-
is-main-branch: true
110-
source-branches:
111-
- release
112-
# Any other branch
113-
unknown:
114-
mode: ManualDeployment
115-
label: '{BranchName}'
89+
mode: ContinuousDelivery
90+
tag: PullRequest
11691
increment: Inherit
117-
regex: (?<BranchName>.+)
118-
source-branches:
119-
- main
120-
- release
121-
- preview
122-
- hotfix
123-
- support
124-
- bugfix
125-
- feature
126-
- pull-request
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

0 commit comments

Comments
 (0)