Skip to content

Commit 70ca5ea

Browse files
committed
fix link to configuration docs
1 parent cfff751 commit 70ca5ea

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/GitVersion.Core.Tests/Configuration/ConfigProviderTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void RegexIsRequired()
9797
SetupConfigFileContent(text);
9898
var ex = Should.Throw<ConfigurationException>(() => configProvider.Provide(repoPath));
9999
ex.Message.ShouldBe($"Branch configuration 'bug' is missing required configuration 'regex'{System.Environment.NewLine}" +
100-
"See https://gitversion.net/docs/configuration/ for more info");
100+
"See https://gitversion.net/docs/configuration for more info");
101101
}
102102

103103
[Test]
@@ -112,7 +112,7 @@ public void SourceBranchIsRequired()
112112
SetupConfigFileContent(text);
113113
var ex = Should.Throw<ConfigurationException>(() => configProvider.Provide(repoPath));
114114
ex.Message.ShouldBe($"Branch configuration 'bug' is missing required configuration 'source-branches'{System.Environment.NewLine}" +
115-
"See https://gitversion.net/docs/configuration/ for more info");
115+
"See https://gitversion.net/docs/configuration for more info");
116116
}
117117

118118
[Test(Description = "This test proves the configuration validation will fail early with a helpful message when a branch listed in source-branches has no configuration.")]
@@ -127,7 +127,7 @@ public void SourceBranchesValidationShouldFailWhenMatchingBranchConfigurationIsM
127127
SetupConfigFileContent(text);
128128
var ex = Should.Throw<ConfigurationException>(() => configProvider.Provide(repoPath));
129129
ex.Message.ShouldBe($"Branch configuration 'bug' defines these 'source-branches' that are not configured: '[notconfigured]'{System.Environment.NewLine}" +
130-
"See https://gitversion.net/docs/configuration/ for more info");
130+
"See https://gitversion.net/docs/configuration for more info");
131131
}
132132

133133
[Test(Description = "Well-known branches may not be present in the configuration file. This test confirms the validation check succeeds when the source-branches configuration contain these well-known branches.")]

src/GitVersion.Core/Configuration/ConfigurationBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,18 +155,18 @@ private static void ValidateConfiguration(Config config)
155155
var regex = branchConfig.Regex;
156156
if (regex == null)
157157
{
158-
throw new ConfigurationException($"Branch configuration '{name}' is missing required configuration 'regex'{System.Environment.NewLine}" + "See https://gitversion.net/docs/configuration/ for more info");
158+
throw new ConfigurationException($"Branch configuration '{name}' is missing required configuration 'regex'{System.Environment.NewLine}" + "See https://gitversion.net/docs/configuration for more info");
159159
}
160160

161161
var sourceBranches = branchConfig.SourceBranches;
162162
if (sourceBranches == null)
163163
{
164-
throw new ConfigurationException($"Branch configuration '{name}' is missing required configuration 'source-branches'{System.Environment.NewLine}" + "See https://gitversion.net/docs/configuration/ for more info");
164+
throw new ConfigurationException($"Branch configuration '{name}' is missing required configuration 'source-branches'{System.Environment.NewLine}" + "See https://gitversion.net/docs/configuration for more info");
165165
}
166166

167167
var missingSourceBranches = sourceBranches.Where(sb => !config.Branches.ContainsKey(sb)).ToArray();
168168
if (missingSourceBranches.Any())
169-
throw new ConfigurationException($"Branch configuration '{name}' defines these 'source-branches' that are not configured: '[{string.Join(",", missingSourceBranches)}]'{System.Environment.NewLine}" + "See https://gitversion.net/docs/configuration/ for more info");
169+
throw new ConfigurationException($"Branch configuration '{name}' defines these 'source-branches' that are not configured: '[{string.Join(",", missingSourceBranches)}]'{System.Environment.NewLine}" + "See https://gitversion.net/docs/configuration for more info");
170170
}
171171
}
172172

0 commit comments

Comments
 (0)