File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
src/GitVersion.Core/Configuration Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ internal record BranchConfiguration : IBranchConfiguration
2424
2525 [ JsonPropertyName ( "label-number-pattern" ) ]
2626 [ JsonPropertyDescription ( @"The regular expression pattern to use to extract the number from the branch name. Defaults to '[/-](?<number>\d+)[-/]'." ) ]
27- [ JsonPropertyDefault ( @"[/-](?<number>\d+)[-/]" ) ]
27+ [ JsonPropertyDefault ( ConfigurationConstants . DefaultLabelNumberPattern ) ]
2828 public string ? LabelNumberPattern { get ; internal set ; }
2929
3030 [ JsonPropertyName ( "track-merge-target" ) ]
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ internal static class ConfigurationConstants
2121 internal const string StringDefaultUpdateBuildNumber = "true" ;
2222 public const SemanticVersionFormat DefaultSemanticVersionFormat = SemanticVersionFormat . Strict ;
2323 internal const string StringDefaultSemanticVersionFormat = nameof ( SemanticVersionFormat . Strict ) ;
24+ public const string DefaultLabelNumberPattern = @"[/-](?<number>\d+)[-/]" ;
2425
2526 public const string MainBranchKey = "main" ;
2627 public const string MasterBranchKey = "master" ;
You can’t perform that action at this time.
0 commit comments