1
- mode : ContinuousDeployment
1
+ # This file is used to configure GitVersion to work with the GitFlow branching strategy.
2
+ #
3
+ # Terminal.Gui uses the GitFlow branching strategy.
4
+ # https://gitversion.net/docs/learn/branching-strategies/gitflow/
5
+ #
6
+ # - We have two main branches: `v2_release` and `v2_develop`.
7
+ # - `v2_release` is the main branch for V2 releases and always matches the latest release package on Nuget (e.g. 2.0.0);
8
+ # prior to release it is a pre-release package (e.g. 2.0.0-prealpha.1).
9
+ # - `v2_develop` is the main branch for V2 development and is always a pre-release package (e.g. 2.0.0-develop.1).
10
+ # - We do all development work on feature branches off of `v2_develop`.
11
+ # - When we deem it time to do a release, we merge the feature branches into `v2_develop` and then `v2_develop` into `v2_release`.
12
+ # - The ./.github/workflows/publish.yml file is configured to build and publish on pushes to `v2_develop` and `v2_release`.
13
+ #
14
+ # We currently use GitVersion 5.1
15
+ #
16
+ # Branches:
17
+ # - v1_release: This is `main` branch for V1
18
+ # - v1_develop: This is `develop` branch for V1
19
+ # - v2_release: This is `main` branch for V2
20
+ # - v2_develop: This is `develop` branch for V2
21
+ #
22
+ # Package Naming:
23
+ # - from v2_develop: v2.0.0-develop.1
24
+ # - from v2_release: Prior to Release: v2.0.0-beta.1 or v2.0.0-alpha.1 or v2.0.0-prealpha.1
25
+ # - from v2_release: Release: v2.0.0
26
+ #
27
+
28
+ # We prefix our tags with a 'v' or 'V' (e.g. v1.0.0)
2
29
tag-prefix : ' [vV]'
30
+
31
+ # This is legacy from v1 and probably can be removed - see tag: develop below
3
32
continuous-delivery-fallback-tag : dev
33
+
4
34
branches :
35
+ # V2 Branches
5
36
develop :
37
+ # We don't really use ContinuousDeployment, but ContinuousDelivery - I don't remember why we have this here but it works.
6
38
mode : ContinuousDeployment
7
39
tag : develop
8
40
regex : v2_develop
@@ -11,12 +43,18 @@ branches:
11
43
source-branches : []
12
44
13
45
main :
46
+ # We don't really use ContinuousDeployment, but ContinuousDelivery - I don't remember why we have this here but it works.
14
47
mode : ContinuousDeployment
48
+
49
+ # For V2 releases, prior to Alpha we use prealpha.
15
50
tag : prealpha
16
51
regex : v2_release
17
52
is-release-branch : true
53
+
54
+ # This tells GitVersion that the main (branch is the source branch for the develop branch.
18
55
source-branches : ['develop']
19
56
57
+ # V1 Branches - These are really just here for reference.
20
58
v1_develop :
21
59
mode : ContinuousDeployment
22
60
tag : v1_develop
@@ -31,6 +69,8 @@ branches:
31
69
is-release-branch : true
32
70
source-branches : ['v1_develop']
33
71
72
+ # Pull Request Branches
73
+ # I don't fully understand this, but it seems to work
34
74
pull-request :
35
75
mode : ContinuousDeployment
36
76
tag : PullRequest.{BranchName}
@@ -45,58 +85,8 @@ branches:
45
85
- hotfix
46
86
pre-release-weight : 30000
47
87
88
+ # I don't remember why we have this here but it works.
48
89
ignore :
49
90
sha : []
50
91
51
-
52
- # next-version: 2.0.0
53
- # mode: ContinuousDeployment
54
- # tag-prefix: '[vV]'
55
- # continuous-delivery-fallback-tag: 'pre'
56
- # branches:
57
- # # v1_develop:
58
- # # mode: ContinuousDeployment
59
- # # tag: pre
60
- # # regex: ^v1_develop?[/-]
61
- # # is-release-branch: false
62
- # # source-branches:
63
- # # - v1
64
- # # v1:
65
- # # tag: rc
66
- # # increment: Patch
67
- # # regex: ^v2?[/-]
68
- # # is-release-branch: false
69
- # # source-branches: []
70
- # # is-mainline: true
71
-
72
- # v2_develop:
73
- # mode: ContinuousDeployment
74
- # tag: pre
75
- # regex: ^v2_develop?[/-]
76
- # is-release-branch: true
77
- # tracks-release-branches: true
78
- # is-source-branch-for: ['v2']
79
- # source-branches: []
80
- # v2:
81
- # mode: ContinuousDeployment
82
- # is-release-branch: false
83
- # tag: alpha
84
- # increment: Patch
85
- # regex: ^v2?[/-]
86
- # source-branches: ['v2_develop']
87
-
88
- # # feature:
89
- # # tag: useBranchName
90
- # # regex: ^features?[/-]
91
- # # source-branches:
92
- # # - v1
93
- # # - v1_develop
94
- # # - v2
95
- # # - v2_develop
96
-
97
- # pull-request:
98
- # tag: PullRequest.{BranchName}
99
- # increment: Inherit
100
- # ignore:
101
- # sha: []
102
- # merge-message-formats: {}
92
+
0 commit comments