Skip to content

Commit e998847

Browse files
KiLLeRRaTarturcic
authored andcommitted
Added new EscapedBranchName variable
1 parent 46ae39f commit e998847

17 files changed

+23
-2
lines changed

docs/input/docs/more-info/variables.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ Running `GitVersion.exe` in your repo will show you what is available. For the
2929
"FullSemVer":"3.0.0-beta.1+1",
3030
"InformationalVersion":"3.0.0-beta.1+1.Branch.release/3.0.0.Sha.28c853159a46b5a87e6cc9c4f6e940c59d6bc68a",
3131
"BranchName":"release/3.0.0",
32+
"EscapedBranchName":"release-3.0.0",
3233
"Sha":"28c853159a46b5a87e6cc9c4f6e940c59d6bc68a",
3334
"ShortSha":"28c8531",
3435
"NuGetVersionV2":"3.0.0-beta0001",

src/GitVersionCore.Tests/Approved/JsonVersionBuilderTests.Json.approved.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"FullSemVer":"1.2.0-unstable.4+5",
2020
"InformationalVersion":"1.2.0-unstable.4+5.Branch.feature1.Sha.commitSha",
2121
"BranchName":"feature1",
22+
"EscapedBranchName":"feature1",
2223
"Sha":"commitSha",
2324
"ShortSha":"commitShortSha",
2425
"NuGetVersionV2":"1.2.0-unstable0004",

src/GitVersionCore.Tests/Approved/VariableProviderTests.ProvidesVariablesInContinuousDeliveryModeForFeatureBranch.approved.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"FullSemVer":"1.2.3+5",
2020
"InformationalVersion":"1.2.3+5.Branch.feature-123.Sha.commitSha",
2121
"BranchName":"feature/123",
22+
"EscapedBranchName":"feature-123",
2223
"Sha":"commitSha",
2324
"ShortSha":"commitShortSha",
2425
"NuGetVersionV2":"1.2.3",

src/GitVersionCore.Tests/Approved/VariableProviderTests.ProvidesVariablesInContinuousDeliveryModeForFeatureBranchWithCustomAssemblyInformationalFormat.approved.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"FullSemVer":"1.2.3+5",
2020
"InformationalVersion":"1.2.3+5.Branch.feature-123.Sha.commitShortSha",
2121
"BranchName":"feature/123",
22+
"EscapedBranchName":"feature-123",
2223
"Sha":"commitSha",
2324
"ShortSha":"commitShortSha",
2425
"NuGetVersionV2":"1.2.3",

src/GitVersionCore.Tests/Approved/VariableProviderTests.ProvidesVariablesInContinuousDeliveryModeForPreRelease.approved.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"FullSemVer":"1.2.3-unstable.4+5",
2020
"InformationalVersion":"1.2.3-unstable.4+5.Branch.develop.Sha.commitSha",
2121
"BranchName":"develop",
22+
"EscapedBranchName":"develop",
2223
"Sha":"commitSha",
2324
"ShortSha":"commitShortSha",
2425
"NuGetVersionV2":"1.2.3-unstable0004",

src/GitVersionCore.Tests/Approved/VariableProviderTests.ProvidesVariablesInContinuousDeliveryModeForPreReleaseWithPadding.approved.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"FullSemVer":"1.2.3-unstable.4+5",
2020
"InformationalVersion":"1.2.3-unstable.4+5.Branch.develop.Sha.commitSha",
2121
"BranchName":"develop",
22+
"EscapedBranchName":"develop",
2223
"Sha":"commitSha",
2324
"ShortSha":"commitShortSha",
2425
"NuGetVersionV2":"1.2.3-unstable00004",

src/GitVersionCore.Tests/Approved/VariableProviderTests.ProvidesVariablesInContinuousDeliveryModeForStable.approved.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"FullSemVer":"1.2.3+5",
2020
"InformationalVersion":"1.2.3+5.Branch.develop.Sha.commitSha",
2121
"BranchName":"develop",
22+
"EscapedBranchName":"develop",
2223
"Sha":"commitSha",
2324
"ShortSha":"commitShortSha",
2425
"NuGetVersionV2":"1.2.3",

src/GitVersionCore.Tests/Approved/VariableProviderTests.ProvidesVariablesInContinuousDeploymentModeForPreRelease.approved.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"FullSemVer":"1.2.3-unstable.8",
2020
"InformationalVersion":"1.2.3-unstable.8+Branch.develop.Sha.commitSha",
2121
"BranchName":"develop",
22+
"EscapedBranchName":"develop",
2223
"Sha":"commitSha",
2324
"ShortSha":"commitShortSha",
2425
"NuGetVersionV2":"1.2.3-unstable0008",

src/GitVersionCore.Tests/Approved/VariableProviderTests.ProvidesVariablesInContinuousDeploymentModeForStable.approved.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"FullSemVer":"1.2.3-ci.5",
2020
"InformationalVersion":"1.2.3-ci.5+Branch.develop.Sha.commitSha",
2121
"BranchName":"develop",
22+
"EscapedBranchName":"develop",
2223
"Sha":"commitSha",
2324
"ShortSha":"commitShortSha",
2425
"NuGetVersionV2":"1.2.3-ci0005",

src/GitVersionCore.Tests/Approved/VariableProviderTests.ProvidesVariablesInContinuousDeploymentModeForStableWhenCurrentCommitIsTagged.approved.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"FullSemVer":"1.2.3+5",
2020
"InformationalVersion":"1.2.3+5.Sha.commitSha",
2121
"BranchName":"",
22+
"EscapedBranchName":"",
2223
"Sha":"commitSha",
2324
"ShortSha":"commitShortSha",
2425
"NuGetVersionV2":"1.2.3",

0 commit comments

Comments
 (0)