File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ The options in here are:
66
66
- **`mode:`** Same as above
67
67
68
68
- **`tag:`** The pre release tag to use for this branch. Use the value `use-branch-name-as-tag` to use the branch name instead.
69
- For example `feature/foo` would become a pre-release tag of `foo` with this value
69
+ For example `feature/foo` would become a pre-release tag of `foo` with this value
70
+ **Note:** To clear a default use an empty string: `tag: ""`
70
71
71
72
- **`increment:`** the part of the SemVer to increment when GitVersion detects it needs to be (i.e commit after a tag)
72
73
Original file line number Diff line number Diff line change @@ -88,6 +88,21 @@ public void OverwritesDefaultsWithProvidedConfig()
88
88
config . Branches [ "dev(elop)?(ment)?$" ] . Tag . ShouldBe ( "dev" ) ;
89
89
}
90
90
91
+ [ Test ]
92
+ public void CanRemoveTag ( )
93
+ {
94
+ const string text = @"
95
+ next-version: 2.0.0
96
+ branches:
97
+ releases?[/-]:
98
+ tag: """"" ;
99
+ SetupConfigFileContent ( text ) ;
100
+ var config = ConfigurationProvider . Provide ( repoPath , fileSystem ) ;
101
+
102
+ config . NextVersion . ShouldBe ( "2.0.0" ) ;
103
+ config . Branches [ "releases?[/-]" ] . Tag . ShouldBe ( string . Empty ) ;
104
+ }
105
+
91
106
[ Test ]
92
107
public void CanProvideConfigForNewBranch ( )
93
108
{
You can’t perform that action at this time.
0 commit comments