Skip to content

Commit adcc01c

Browse files
committed
Documented GitVersion.xml
1 parent e0425e1 commit adcc01c

File tree

1 file changed

+43
-53
lines changed

1 file changed

+43
-53
lines changed

GitVersion.yml

+43-53
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,40 @@
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)
229
tag-prefix: '[vV]'
30+
31+
# This is legacy from v1 and probably can be removed - see tag: develop below
332
continuous-delivery-fallback-tag: dev
33+
434
branches:
35+
# V2 Branches
536
develop:
37+
# We don't really use ContinuousDeployment, but ContinuousDelivery - I don't remember why we have this here but it works.
638
mode: ContinuousDeployment
739
tag: develop
840
regex: v2_develop
@@ -11,12 +43,18 @@ branches:
1143
source-branches: []
1244

1345
main:
46+
# We don't really use ContinuousDeployment, but ContinuousDelivery - I don't remember why we have this here but it works.
1447
mode: ContinuousDeployment
48+
49+
# For V2 releases, prior to Alpha we use prealpha.
1550
tag: prealpha
1651
regex: v2_release
1752
is-release-branch: true
53+
54+
# This tells GitVersion that the main (branch is the source branch for the develop branch.
1855
source-branches: ['develop']
1956

57+
# V1 Branches - These are really just here for reference.
2058
v1_develop:
2159
mode: ContinuousDeployment
2260
tag: v1_develop
@@ -31,6 +69,8 @@ branches:
3169
is-release-branch: true
3270
source-branches: ['v1_develop']
3371

72+
# Pull Request Branches
73+
# I don't fully understand this, but it seems to work
3474
pull-request:
3575
mode: ContinuousDeployment
3676
tag: PullRequest.{BranchName}
@@ -45,58 +85,8 @@ branches:
4585
- hotfix
4686
pre-release-weight: 30000
4787

88+
# I don't remember why we have this here but it works.
4889
ignore:
4990
sha: []
5091

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

Comments
 (0)