Skip to content

Commit 4cbf7a5

Browse files
Fix error in APIView Helper (Azure#44866)
Co-authored-by: Chidozie Ononiwu <[email protected]>
1 parent 885b6ca commit 4cbf7a5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

eng/common/scripts/Helpers/ApiView-Helpers.ps1

+3-2
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,15 @@ function Set-ApiViewCommentForPR {
180180
$commentText += "APIView identified API level changes in this PR and created the following API reviews"
181181
$commentText += ""
182182

183+
$responseContent = $response.Content | ConvertFrom-Json
183184
if ($RepoName.StartsWith(("azure-sdk-for-"))) {
184-
$response | ForEach-Object {
185+
$responseContent | ForEach-Object {
185186
$commentText += "[$($_.packageName)]($($_.url))"
186187
}
187188
} else {
188189
$commentText += "| Language | API Review for Package |"
189190
$commentText += "|----------|---------|"
190-
$response | ForEach-Object {
191+
$responseContent | ForEach-Object {
191192
$commentText += "| $($_.language) | [$($_.packageName)]($($_.url)) |"
192193
}
193194
}

0 commit comments

Comments
 (0)