Skip to content

Commit 6135cb7

Browse files
azure-sdk-automation[bot]tjprescottCopilot
authored
Sync eng/common directory with azure-sdk-tools for PR 16323 (#48003)
* Make failures report errors. * Code review feedback. * Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Travis Prescott <trpresco@microsoft.com> Co-authored-by: Travis Prescott <tjprescott@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent e256be8 commit 6135cb7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

eng/common/scripts/Create-APIReview.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,10 @@ function ProcessPackage($packageInfo)
337337
{
338338
if (!$apiStatus.IsApproved)
339339
{
340-
Write-Host "Package version $($version) is GA and automatic API Review is not yet approved for package $($packageInfo.ArtifactName)."
341-
Write-Host "Build and release is not allowed for GA package without API review approval."
342-
Write-Host "You will need to queue another build to proceed further after API review is approved"
343-
Write-Host "You can check http://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval."
340+
Write-Error "Package version $($version) is GA and automatic API Review is not yet approved for package $($packageInfo.ArtifactName)." -ErrorAction Continue
341+
Write-Error "Build and release is not allowed for GA package without API review approval." -ErrorAction Continue
342+
Write-Error "You will need to queue another build to proceed further after API review is approved" -ErrorAction Continue
343+
Write-Error "You can check https://aka.ms/azsdk/engsys/apireview/faq for more details on API Approval." -ErrorAction Continue
344344
}
345345
return 1
346346
}
@@ -437,7 +437,7 @@ foreach($pkg in $responses.keys)
437437
{
438438
if ($responses[$pkg] -eq 1)
439439
{
440-
Write-Host "API changes are not approved for $($pkg)"
440+
Write-Error "API changes are not approved for $($pkg)" -ErrorAction Continue
441441
$exitCode = 1
442442
}
443443
}

0 commit comments

Comments
 (0)