From da54173ead1fd3ac6036d53913dc8fa99ca93657 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 2 Apr 2025 15:32:26 -0700 Subject: [PATCH] Fix error in APIView Helper (#6503) Co-authored-by: Chidozie Ononiwu --- eng/common/scripts/Helpers/ApiView-Helpers.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eng/common/scripts/Helpers/ApiView-Helpers.ps1 b/eng/common/scripts/Helpers/ApiView-Helpers.ps1 index e25214a93..ff73815ea 100644 --- a/eng/common/scripts/Helpers/ApiView-Helpers.ps1 +++ b/eng/common/scripts/Helpers/ApiView-Helpers.ps1 @@ -180,14 +180,15 @@ function Set-ApiViewCommentForPR { $commentText += "APIView identified API level changes in this PR and created the following API reviews" $commentText += "" + $responseContent = $response.Content | ConvertFrom-Json if ($RepoName.StartsWith(("azure-sdk-for-"))) { - $response | ForEach-Object { + $responseContent | ForEach-Object { $commentText += "[$($_.packageName)]($($_.url))" } } else { $commentText += "| Language | API Review for Package |" $commentText += "|----------|---------|" - $response | ForEach-Object { + $responseContent | ForEach-Object { $commentText += "| $($_.language) | [$($_.packageName)]($($_.url)) |" } }