From 46b00279a97dcea585fc2e9c87fd47078e09d0a3 Mon Sep 17 00:00:00 2001 From: Mario Rosa Date: Wed, 31 Jul 2024 12:23:03 -0400 Subject: [PATCH] replace any underscores that came in through group matches --- src/GitVersion.Core/Extensions/ConfigurationExtensions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/GitVersion.Core/Extensions/ConfigurationExtensions.cs b/src/GitVersion.Core/Extensions/ConfigurationExtensions.cs index f580c31840..66686ba81b 100644 --- a/src/GitVersion.Core/Extensions/ConfigurationExtensions.cs +++ b/src/GitVersion.Core/Extensions/ConfigurationExtensions.cs @@ -103,6 +103,8 @@ public static bool IsReleaseBranch(this IGitVersionConfiguration configuration, { label = label.Replace("{" + groupName + "}", match.Groups[groupName].Value); } + + label = label.Replace('_', '-'); } }