Skip to content

Make Create-APIReview report Errors when API is not approved#16323

Merged
tjprescott merged 3 commits into
mainfrom
apiviewFailureUpdate
Jul 21, 2026
Merged

Make Create-APIReview report Errors when API is not approved#16323
tjprescott merged 3 commits into
mainfrom
apiviewFailureUpdate

Conversation

@tjprescott

Copy link
Copy Markdown
Member

Make the actual failure stand out in the logs without having to look into the detailed logs.

@tjprescott
tjprescott requested a review from a team as a code owner July 10, 2026 19:14
Copilot AI review requested due to automatic review settings July 10, 2026 19:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Create-APIReview.ps1 reporting so that API approval failures are emitted as PowerShell errors, making the underlying cause more visible in pipeline logs without needing to inspect detailed logs.

Changes:

  • Switch GA “API review not approved” messaging from Write-Host to Write-Error.
  • Switch the end-of-run summary line (“API changes are not approved…”) from Write-Host to Write-Error.

@azure-sdk-automation

Copy link
Copy Markdown
Contributor

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread eng/common/scripts/Create-APIReview.ps1 Outdated
Comment thread eng/common/scripts/Create-APIReview.ps1 Outdated
@azure-sdk-automation

Copy link
Copy Markdown
Contributor

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@azure-sdk-automation

Copy link
Copy Markdown
Contributor

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

tjprescott added a commit to Azure/azure-sdk-for-js that referenced this pull request Jul 21, 2026
Sync eng/common directory with azure-sdk-tools for PR
Azure/azure-sdk-tools#16323 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

---------

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>
tjprescott added a commit to Azure/azure-sdk-for-rust that referenced this pull request Jul 21, 2026
Sync eng/common directory with azure-sdk-tools for PR
Azure/azure-sdk-tools#16323 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

---------

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>
@tjprescott
tjprescott merged commit 6c69ee1 into main Jul 21, 2026
9 of 12 checks passed
@tjprescott
tjprescott deleted the apiviewFailureUpdate branch July 21, 2026 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants