@@ -38,21 +38,20 @@ simply to show what happens if the check is true.
38
38
39
39
Currently we have the following strategies:
40
40
41
- * ` TaggedCommit ` - Extracts version information from all tags on the branch which are valid,
42
- and not newer than the current commit.
43
- * ` VersionInBranchName ` - Extracts version information from the
44
- branch name (e.g., ` release/3.0.0 ` will find ` 3.0.0 ` )
45
- * ` ConfiguredNextVersion ` - Returns the version from the
46
- GitVersion.yaml file
47
- * ` MergeMessage ` - Finds version numbers from merge messages
48
- (e.g., ` Merge 'release/3.0.0' into 'main' ` will return ` 3.0.0 ` )
49
41
* ` Fallback ` - Always returns 0.0.0 and will be used for
50
42
calculating the next version which is dependent on the increment strategy of
51
43
the effected branch (e.g. on main the next version is 0.0.1 or on develop it is 0.1.0).
52
44
The fallback strategy only applies if no other selected strategy returns a base version.
45
+ * ` ConfiguredNextVersion ` - Returns the version from the GitVersion.yaml file
46
+ * ` MergeMessage ` - Finds version numbers from merge messages
47
+ (e.g., ` Merge 'release/3.0.0' into 'main' ` will return ` 3.0.0 ` )
48
+ * ` TaggedCommit ` - Extracts version information from all tags on the branch which are valid,
49
+ and not newer than the current commit.
53
50
* ` TrackReleaseBranches ` - Considers the base version extracted from release branches when
54
- calculating the next version for branches configured with ` track-release-branches: true `
55
- (part of default configuration for ` develop ` branch in ` GitFlow ` workflow)
51
+ calculating the next version for branches configured with ` track-release-branches: true `
52
+ (part of default configuration for ` develop ` branch in ` GitFlow ` workflow)
53
+ * ` VersionInBranchName ` - Extracts version information from the
54
+ branch name (e.g., ` release/3.0.0 ` will find ` 3.0.0 ` )
56
55
* ` Mainline ` - Increments the version on every commit for branches configured with ` is-main-branch: true `
57
56
58
57
Each strategy needs to return an instance of ` BaseVersion ` which has the
0 commit comments