From c94ba6046e0ac38c0271f7149c698d5a2a8d056e Mon Sep 17 00:00:00 2001 From: Brennan Date: Tue, 20 Apr 2021 11:20:07 -0700 Subject: [PATCH 1/2] Ignore Unshipped.txt in previews --- eng/scripts/CodeCheck.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/scripts/CodeCheck.ps1 b/eng/scripts/CodeCheck.ps1 index c524640f430c..c3564323cb52 100644 --- a/eng/scripts/CodeCheck.ps1 +++ b/eng/scripts/CodeCheck.ps1 @@ -211,7 +211,7 @@ try { $changedAPIBaselines.Add($file) } # Check for changes in Unshipped in servicing branches - if ($targetBranch -like 'release*' -and $file -like '*PublicAPI.Unshipped.txt') { + if ($targetBranch -like 'release*' -and -notlike '*preview*' -and $file -like '*PublicAPI.Unshipped.txt') { $changedAPIBaselines.Add($file) } } From bfdd0c5d21728ea475e22b1cb52acb5a34cb16b7 Mon Sep 17 00:00:00 2001 From: Brennan Date: Tue, 20 Apr 2021 11:25:14 -0700 Subject: [PATCH 2/2] Update CodeCheck.ps1 typo --- eng/scripts/CodeCheck.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/scripts/CodeCheck.ps1 b/eng/scripts/CodeCheck.ps1 index c3564323cb52..a1330618f411 100644 --- a/eng/scripts/CodeCheck.ps1 +++ b/eng/scripts/CodeCheck.ps1 @@ -211,7 +211,7 @@ try { $changedAPIBaselines.Add($file) } # Check for changes in Unshipped in servicing branches - if ($targetBranch -like 'release*' -and -notlike '*preview*' -and $file -like '*PublicAPI.Unshipped.txt') { + if ($targetBranch -like 'release*' -and $targetBranch -notlike '*preview*' -and $file -like '*PublicAPI.Unshipped.txt') { $changedAPIBaselines.Add($file) } }