Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 46b97c5

Browse files
committed
Don't append 'undefined' label when that's the 'branch' name in a PR
1 parent 15d1868 commit 46b97c5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Directory.Build.targets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ AssemblyVersion=$(AssemblyVersion)" />
4646

4747
<!-- We'll use GitFlow and ship publicly from a versioned branch, meaning we don't need branch metadata in those cases -->
4848
<GitSemVerDashLabel Condition="'$(GitSemVerDashLabel)' == '' and $(_GitBranch.StartsWith('v')) == 'false'">-$(_GitBranch)</GitSemVerDashLabel>
49-
<SemVerMetadata Condition="'$(GitSemVerDashLabel)' != '-$(_GitBranch)' and $(_GitBranch.StartsWith('v')) == 'false'">$(_GitBranch).</SemVerMetadata>
49+
<SemVerMetadata Condition="'$(GitSemVerDashLabel)' != '-$(_GitBranch)' and $(_GitBranch.StartsWith('v')) == 'false' and '$(_GitBranch)' != 'undefined'">$(_GitBranch).</SemVerMetadata>
5050
<SemVerMetadata>$(SemVerMetadata)sha.$(GitCommit)</SemVerMetadata>
5151

5252
<!-- If there is a pre-release label, fix the major.minor.build and increment the release label digit instead. -->

0 commit comments

Comments
 (0)