You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**\*** Some strategies allow the version to be incremented, others don't. More info below
33
-
**+** This version is out of context with the rest of the example. It is here just to show what happens if the check is true
34
-
35
-
## Base Version Strategies
36
-
Currently we have the following strategies
37
-
38
-
-`HighestTagBaseVersionStrategy` - Finds the highest reachable tag from the current branch
39
-
-`VersionInBranchBaseVersionStrategy` - Extracts version information from the branch name. eg `release/3.0.0` will find `3.0.0`
40
-
-`ConfigNextVersionBaseVersionStrategy` - Returns the version from the GitVersion.yaml file
41
-
-`MergeMessageBaseVersionStrategy` - Finds version numbers from merge messages. eg. `Merge 'release/3.0.0' into 'master'` will return `3.0.0`
42
-
-`FallbackBaseVersionStrategy` - Always returns 0.1.0 for new repositories
43
-
44
-
Each strategy needs to return an instance of `BaseVersion` which has the following properties
45
-
46
-
-`Source` - Description of the source. eg `Merge message 'Merge 'release/3.0.0' into 'master''
47
-
-`ShouldIncrement` - Some strategies should have the version incremented, others do not. eg `ConfigNextVersionBaseVersionStrategy` returns false, `HighestTagBaseVersionStrategy` returns true
48
-
-`SemanticVersion` - SemVer of the base version strategy
49
-
-`BaseVersionSource` - Sha of the source. Commits will be counted from this Sha. Can be null (eg ConfigNextVersionBaseVersionStrategy returns null)
50
-
-`BranchNameOverride` - When `useBranchNameAsTag` is used, this allows the branch name to be changed by a base version.
51
-
VersionInBranchBaseVersionStrategy uses this to strip out anything before the first - or /. So `foo` ends up being evaluated as `foo`. If in doubt, just use null
19
+
# How it works
20
+
See [how it works](http://gitversion.readthedocs.org/en/latest/more-info/how-it-works/) in GitVersion's documentation
52
21
53
22
# Writing Tests
54
23
We have made it super easy to write tests in GitVersion. Most tests you are interested in are in `GitVersionCore.Tests\IntegrationTests`.
0 commit comments