Exit early if no API changes are found (#6531)
Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
This commit is contained in:
parent
95a88de9ef
commit
ac75bd58e9
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user