Skip to content

Commit

Permalink
Docs changes
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Sep 17, 2024
1 parent 3176568 commit 6941b9f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 12 deletions.
24 changes: 12 additions & 12 deletions docs/input/docs/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ assembly-versioning-scheme: MajorMinorPatch
assembly-file-versioning-scheme: MajorMinorPatch
tag-prefix: '[vV]?'
version-in-branch-pattern: (?<version>[vV]?\d+(\.\d+)?(\.\d+)?).*
major-version-bump-message: '\+semver:\s?(breaking|major)'
minor-version-bump-message: '\+semver:\s?(feature|minor)'
patch-version-bump-message: '\+semver:\s?(fix|patch)'
no-bump-message: '\+semver:\s?(none|skip)'
major-version-bump-message: \+semver:\s?(breaking|major)
minor-version-bump-message: \+semver:\s?(feature|minor)
patch-version-bump-message: \+semver:\s?(fix|patch)
no-bump-message: \+semver:\s?(none|skip)
tag-pre-release-weight: 60000
commit-date-format: yyyy-MM-dd
merge-message-formats: {}
Expand Down Expand Up @@ -221,10 +221,10 @@ assembly-versioning-scheme: MajorMinorPatch
assembly-file-versioning-scheme: MajorMinorPatch
tag-prefix: '[vV]?'
version-in-branch-pattern: (?<version>[vV]?\d+(\.\d+)?(\.\d+)?).*
major-version-bump-message: '\+semver:\s?(breaking|major)'
minor-version-bump-message: '\+semver:\s?(feature|minor)'
patch-version-bump-message: '\+semver:\s?(fix|patch)'
no-bump-message: '\+semver:\s?(none|skip)'
major-version-bump-message: \+semver:\s?(breaking|major)
minor-version-bump-message: \+semver:\s?(feature|minor)
patch-version-bump-message: \+semver:\s?(fix|patch)
no-bump-message: \+semver:\s?(none|skip)
tag-pre-release-weight: 60000
commit-date-format: yyyy-MM-dd
merge-message-formats: {}
Expand Down Expand Up @@ -346,10 +346,10 @@ assembly-versioning-scheme: MajorMinorPatch
assembly-file-versioning-scheme: MajorMinorPatch
tag-prefix: '[vV]?'
version-in-branch-pattern: (?<version>[vV]?\d+(\.\d+)?(\.\d+)?).*
major-version-bump-message: '\+semver:\s?(breaking|major)'
minor-version-bump-message: '\+semver:\s?(feature|minor)'
patch-version-bump-message: '\+semver:\s?(fix|patch)'
no-bump-message: '\+semver:\s?(none|skip)'
major-version-bump-message: \+semver:\s?(breaking|major)
minor-version-bump-message: \+semver:\s?(feature|minor)
patch-version-bump-message: \+semver:\s?(fix|patch)
no-bump-message: \+semver:\s?(none|skip)
tag-pre-release-weight: 60000
commit-date-format: yyyy-MM-dd
merge-message-formats: {}
Expand Down
11 changes: 11 additions & 0 deletions src/GitVersion.Core/Configuration/ConfigurationConstants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ internal static class ConfigurationConstants
VersionStrategies.VersionInBranchName
];
public const string DefaultAssemblyInformationalFormat = "{InformationalVersion}";
//language=regexp
public const string DefaultTagPrefix = "[vV]?";
//language=regexp
public const string DefaultVersionInBranchPattern = @"(?<version>[vV]?\d+(\.\d+)?(\.\d+)?).*";
public const string DefaultCommitDateFormat = "yyyy-MM-dd";
public const string BranchNamePlaceholder = "{BranchName}";
//language=regexp
public const string DefaultLabelNumberPattern = @"[/-](?<number>\d+)";
public const bool DefaultUpdateBuildNumber = true;
public const int DefaultTagPreReleaseWeight = 60000;
Expand All @@ -40,12 +43,20 @@ internal static class ConfigurationConstants
public const string SupportBranchKey = "support";
public const string UnknownBranchKey = "unknown";

//language=regexp
public const string MainBranchRegex = "^master$|^main$";
//language=regexp
public const string DevelopBranchRegex = "^dev(elop)?(ment)?$";
//language=regexp
public const string ReleaseBranchRegex = "^releases?[/-](?<BranchName>.+)";
//language=regexp
public const string FeatureBranchRegex = "^features?[/-](?<BranchName>.+)";
//language=regexp
public const string PullRequestBranchRegex = @"^(pull|pull\-requests|pr)[/-]";
//language=regexp
public const string HotfixBranchRegex = "^hotfix(es)?[/-](?<BranchName>.+)";
//language=regexp
public const string SupportBranchRegex = "^support[/-](?<BranchName>.+)";
//language=regexp
public const string UnknownBranchRegex = "(?<BranchName>.+)";
}

0 comments on commit 6941b9f

Please sign in to comment.