Exit early if no API changes are found (#6531)

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
This commit is contained in:
Azure SDK Bot 2025-04-18 10:18:11 -07:00 committed by GitHub
parent 95a88de9ef
commit ac75bd58e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -171,8 +171,7 @@ function Set-ApiViewCommentForPR {
$response = Invoke-WebRequest -Uri $apiviewEndpoint -Method Get -MaximumRetryCount 3
if ($response.StatusCode -ne 200) {
LogWarning "API changes are not detected in this pull request."
$commentText += ""
$commentText += "API changes are not detected in this pull request."
exit 0
}
else {
LogSuccess "APIView identified API level changes in this PR and created $($response.Count) API reviews"