Skip to content

Commit 60bc9ae

Browse files
committed
Fix typo and accidental overwrite of mustComment variable
1 parent c487302 commit 60bc9ae

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎eng/workflows/native/workflow-matrix.ps1‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@ $jobNames = @($buildsJson.native.PSObject.Properties.Name | Sort-Object -Unique)
1616
$repoRoot = Join-Path $PSScriptRoot "../../.."
1717

1818
# PR Comment
19+
$mustComment = $false
20+
$comment = "## Silk Native Build"
21+
1922
if ($previousCommentId -eq "0") {
2023
$previousCommentId = ""
2124
}
2225

2326
if ($previousCommentId) {
24-
$mustComment = true
27+
$mustComment = $true
2528
}
2629

2730
$notAllReferenced = $false
@@ -32,8 +35,6 @@ foreach ($affectedJob in $affectedJobs) {
3235
}
3336
}
3437

35-
$mustComment = $false
36-
$comment = "## Silk Native Build"
3738
if ($notAllReferenced) {
3839
$mustComment = $true
3940
$comment += "`n`nSome of the native library builds modified in this PR were not referenced in the PR description. Please ensure that the PR description contains ``/native $affectedJobs``. These libraries won't be rebuilt without this being specified. If you believe this is in error, then please write a comment explaining why and ignore this suggestion. This comment will be automatically updated if rectified."

0 commit comments

Comments
 (0)