|
35 | 35 | $isBotBumpPr = ($env:PR_AUTHOR -eq 'github-actions[bot]') -and ($env:HEAD_REF -like 'bot/bump-*' -or $env:HEAD_REF -like 'bot/promote-*') |
36 | 36 |
|
37 | 37 | $labels = $env:LABELS_JSON | ConvertFrom-Json |
38 | | - $isBreaking = $labels -contains 'breaking-change' |
| 38 | + $isBreaking = $labels -contains 'breaking change' |
39 | 39 | $isManualEdit = $labels -contains 'manual-version-edit' |
40 | 40 |
|
41 | 41 | # Reject any human-authored PR that touches version.json unless explicitly |
@@ -84,11 +84,11 @@ jobs: |
84 | 84 | # Unconditional check: if this PR changes the major in version.json, it MUST be |
85 | 85 | # labeled breaking-change. Catches unlabeled major-version edits. |
86 | 86 | if ($headMajor -ne $baseMajor -and -not $isBreaking) { |
87 | | - throw "This PR changes version.json's major from $baseMajor to $headMajor but is not labeled 'breaking-change'. Major-version changes must be tagged." |
| 87 | + throw "This PR changes version.json's major from $baseMajor to $headMajor but is not labeled 'breaking change'. Major-version changes must be tagged." |
88 | 88 | } |
89 | 89 |
|
90 | 90 | if (-not $isBreaking) { |
91 | | - Write-Host "PR is not labeled 'breaking-change' and does not change the major; no further checks." |
| 91 | + Write-Host "PR is not labeled 'breaking change' and does not change the major; no further checks." |
92 | 92 | exit 0 |
93 | 93 | } |
94 | 94 |
|
@@ -122,9 +122,9 @@ jobs: |
122 | 122 | $expectedMajor = $latestMajor + 1 |
123 | 123 | if ($headMajor -ne $expectedMajor) { |
124 | 124 | if ($headMajor -le $latestMajor) { |
125 | | - $msg = "PR is labeled breaking-change but its version.json major ($headMajor) is not greater than the latest stable release major ($latestMajor; tag '$latestStable'). Run the 'Bump main to next major preview' workflow with next_major=$expectedMajor first, then rebase this PR onto the updated main." |
| 125 | + $msg = "PR is labeled 'breaking change' but its version.json major ($headMajor) is not greater than the latest stable release major ($latestMajor; tag '$latestStable'). Run the 'Bump main to next major preview' workflow with next_major=$expectedMajor first, then rebase this PR onto the updated main." |
126 | 126 | } else { |
127 | | - $msg = "PR is labeled breaking-change but its version.json major ($headMajor) skips past major $expectedMajor. Main must be at exactly latest_stable_major + 1 ($latestMajor + 1 = $expectedMajor). Reset main to $expectedMajor.0-preview.{height} before merging this PR." |
| 127 | + $msg = "PR is labeled 'breaking change' but its version.json major ($headMajor) skips past major $expectedMajor. Main must be at exactly latest_stable_major + 1 ($latestMajor + 1 = $expectedMajor). Reset main to $expectedMajor.0-preview.{height} before merging this PR." |
128 | 128 | } |
129 | 129 | throw $msg |
130 | 130 | } |
|
0 commit comments