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
# Check for changes in Unshipped in servicing branches
212
-
if ($targetBranch-like'release*'-and$file-like'*PublicAPI.Unshipped.txt') {
213
-
$changedAPIBaselines.Add($file)
207
+
if ($changedFilesFromTarget) {
208
+
foreach ($filein$changedFilesFromTarget) {
209
+
# Check for changes in Shipped in all branches
210
+
if ($file-like'*PublicAPI.Shipped.txt') {
211
+
$changedAPIBaselines.Add($file)
212
+
}
213
+
# Check for changes in Unshipped in servicing branches
214
+
if ($targetBranch-like'release*'-and$file-like'*PublicAPI.Unshipped.txt') {
215
+
$changedAPIBaselines.Add($file)
216
+
}
214
217
}
215
218
}
216
-
}
217
219
218
-
Write-Host"Found changes in $($changedAPIBaselines.count) API baseline files"
220
+
Write-Host"Found changes in $($changedAPIBaselines.count) API baseline files"
219
221
220
-
if ($changedAPIBaselines.count-gt0) {
221
-
LogError "Detected modification to baseline API files. PublicAPI.Shipped.txt files should only be updated after a major release. See /docs/APIBaselines.md for more information."
222
-
LogError "Modified API baseline files:"
223
-
foreach ($filein$changedAPIBaselines) {
224
-
LogError $file
222
+
if ($changedAPIBaselines.count-gt0) {
223
+
LogError "Detected modification to baseline API files. PublicAPI.Shipped.txt files should only be updated after a major release. See /docs/APIBaselines.md for more information."
0 commit comments