From 77b852436b221907b09e1a6dc7abbb7b7afd5fc4 Mon Sep 17 00:00:00 2001 From: Whitney Shake <106706358+WhitShake@users.noreply.github.com> Date: Tue, 5 Mar 2024 12:38:24 -0800 Subject: [PATCH] Link to review page in Git issue (#7779) * Link to review page in Git issue * Removed comment line 217 * Update src/dotnet/APIView/APIViewWeb/Client/src/shared/comments.ts Co-authored-by: Mariana Rios Flores --------- Co-authored-by: Mariana Rios Flores --- src/dotnet/APIView/APIViewWeb/Client/src/shared/comments.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/dotnet/APIView/APIViewWeb/Client/src/shared/comments.ts b/src/dotnet/APIView/APIViewWeb/Client/src/shared/comments.ts index 726b1cdbd..4a2e578b3 100644 --- a/src/dotnet/APIView/APIViewWeb/Client/src/shared/comments.ts +++ b/src/dotnet/APIView/APIViewWeb/Client/src/shared/comments.ts @@ -213,10 +213,7 @@ $(() => { apiViewUrl = window.location.href.split("#")[0] + "%23" + escape(escape(hp.getElementId(commentElement[0])!)); } - let issueBody = escape("```" + language + "\n" + codeLine.text().trim() + "\n```\n#\n" + comment); - // TODO uncomment below once the feature to support public ApiView Reviews is enabled. - //+ "\n#\n") - //+ "[Created from ApiView comment](" + apiViewUrl + ")"; + let issueBody = escape("```" + language + "\n" + codeLine.text().trim() + "\n```\n#\n" + comment + "\n#\n" + "[Created from ApiView comment](" + apiViewUrl + ")"); window.open( "https://github.com/Azure/" + repo + "/issues/new?" +