Skip to content

Commit 1012c32

Browse files
committed
Added copies of different verrsions of GitVersion.yml, added some comments
1 parent 329472a commit 1012c32

3 files changed

Lines changed: 65 additions & 0 deletions

File tree

GitVersion.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
# Configuration file for the GitVersion tool.
3+
14
# mode: ContinuousDeployment # commented - we leave it to built-in config
25
workflow: GitHubFlow/v1
36
strategies:

GitVersion_CP1.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This version is the result of experimentation with tweaking some parameters,
2+
# in order to find versioning regime that suits the needs. Please keeep it for
3+
# some time (until the final workflow is well settled).
4+
5+
# Configuration file for the GitVersion tool.
6+
7+
# mode: ContinuousDeployment # commented - we leave it to built-in config
8+
workflow: GitHubFlow/v1
9+
strategies:
10+
# This enables incrementing the patch number on main branch with each commit:
11+
# # - ConfiguredNextVersion
12+
- Mainline
13+
branches:
14+
# Configuration for main branch:
15+
main:
16+
# Match either "main" or "master" at main branch
17+
regex: ^master$|^main$
18+
label: ''
19+
# Patch number increases with new commits on the main branch
20+
increment: Patch
21+
is-release-branch: true
22+
is-main-branch: true
23+
develop:
24+
regex: ^develop$
25+
# Add the "alpha" + incremented number suffix on develop branch:
26+
label: 'alpha'
27+
increment: Patch
28+
ignore:
29+
sha: []
30+
commit-message-incrementing: Enabled
31+
assembly-versioning-scheme: MajorMinorPatch
32+
assembly-file-versioning-scheme: MajorMinorPatch

GitVersion_CPOrig.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This is the original version of GitVersion.yml. It does not invrement main
2+
# version on every commit, increments minor version on dev branch after
3+
# branching off main and adds `beta` suffix plus numbe r to versions on the
4+
# develop branch, and versions other branches similarly.
5+
#
6+
# * Commits on main produce versions like 1.2.3.
7+
# * Commits on develop produce pre-releases like 1.3.0-beta.4.
8+
# * You can tune increment rules per branch, or add feature/* branches to get 1.3.0-feature.mybranch.1.
9+
10+
11+
# Configuration file for the GitVersion tool.
12+
13+
mode: ContinuousDeployment
14+
workflow: GitHubFlow/v1
15+
branches:
16+
main:
17+
regex: ^master$|^main$
18+
label: ''
19+
increment: Patch
20+
is-release-branch: true
21+
is-main-branch: true
22+
develop:
23+
regex: ^develop$
24+
label: beta
25+
increment: Minor
26+
ignore:
27+
sha: []
28+
commit-message-incrementing: Enabled
29+
assembly-versioning-scheme: MajorMinorPatch
30+
assembly-file-versioning-scheme: MajorMinorPatch

0 commit comments

Comments
 (0)