Skip to content

Commit 255a73c

Browse files
committed
Merge pull request #741 from JakeGinnivan/AddBranchConfigMapping
Added another feature branch mapping
2 parents 8fabae0 + 1f7ec4b commit 255a73c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/GitVersionCore/Configuration/ConfigurationProvider.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static void ApplyDefaultsTo(Config config)
4747
defaultIncrementStrategy: IncrementStrategy.Inherit);
4848
ApplyBranchDefaults(config, GetOrCreateBranchDefaults(config, "hotfix(es)?[/-]"), defaultTag: "beta");
4949
ApplyBranchDefaults(config, GetOrCreateBranchDefaults(config, "support[/-]"), defaultTag: string.Empty, defaultPreventIncrement: true);
50-
ApplyBranchDefaults(config, GetOrCreateBranchDefaults(config, "dev(elop)?(ment)?$"),
50+
ApplyBranchDefaults(config, GetOrCreateBranchDefaults(config, "dev(elop)?(ment)?$"),
5151
defaultTag: "unstable",
5252
defaultIncrementStrategy: IncrementStrategy.Minor,
5353
defaultVersioningMode: VersioningMode.ContinuousDeployment,
@@ -66,10 +66,10 @@ static void MigrateBranches(Config config)
6666
// Map of current names and previous names
6767
var dict = new Dictionary<string, string[]>
6868
{
69-
{ "hotfix(es)?[/-]", new []{"hotfix[/-]"}},
70-
{ "features?[/-]", new []{"feature[/-]"}},
71-
{ "releases?[/-]", new []{"release[/-]"}},
72-
{ "dev(elop)?(ment)?$", new []{"develop"}}
69+
{ "hotfix(es)?[/-]", new [] { "hotfix[/-]" }},
70+
{ "features?[/-]", new [] { "feature[/-]", "feature(s)?[/-]" }},
71+
{ "releases?[/-]", new [] { "release[/-]" }},
72+
{ "dev(elop)?(ment)?$", new [] { "develop" }}
7373
};
7474

7575
foreach (var mapping in dict)
@@ -101,7 +101,7 @@ static BranchConfig GetOrCreateBranchDefaults(Config config, string branch)
101101
}
102102

103103
public static void ApplyBranchDefaults(Config config,
104-
BranchConfig branchConfig,
104+
BranchConfig branchConfig,
105105
string defaultTag = "useBranchName",
106106
IncrementStrategy defaultIncrementStrategy = IncrementStrategy.Patch,
107107
bool defaultPreventIncrement = false,

0 commit comments

Comments
 (0)