You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: eng/scripts/CodeCheck.ps1
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -253,7 +253,7 @@ try {
253
253
}
254
254
}
255
255
# Check for changes in Unshipped in servicing branches
256
-
if ($targetBranch-like'release*'-and$targetBranch-notlike'*preview*'-and$file-like'*PublicAPI.Unshipped.txt') {
256
+
if ($targetBranch-like'release*'-and$targetBranch-notlike'*preview*'-and$targetBranch-notlike'*rc1*'-and$targetBranch-notlike'*rc2*'-and$file-like'*PublicAPI.Unshipped.txt') {
257
257
$changedAPIBaselines.Add($file)
258
258
}
259
259
}
@@ -263,7 +263,8 @@ try {
263
263
264
264
if ($changedAPIBaselines.count-gt0) {
265
265
LogError ("Detected modification to baseline API files. PublicAPI.Shipped.txt files should only "+
266
-
"be updated after a major release. See /docs/APIBaselines.md for more information.")
266
+
"be updated after a major release, and PublicAPI.Unshipped.txt files should not "+
267
+
"be updated in release branches. See /docs/APIBaselines.md for more information.")
0 commit comments