diff --git a/src/dotnet/APIView/APIViewWeb/HostedServices/CopilotJobProcessor.cs b/src/dotnet/APIView/APIViewWeb/HostedServices/CopilotJobProcessor.cs index ebd43ce979f..dd6201f785a 100644 --- a/src/dotnet/APIView/APIViewWeb/HostedServices/CopilotJobProcessor.cs +++ b/src/dotnet/APIView/APIViewWeb/HostedServices/CopilotJobProcessor.cs @@ -128,22 +128,19 @@ public async Task ProcessJobAsync(AIReviewJobInfoModel jobInfo, CancellationToke var commentText = new StringBuilder(); commentText.AppendLine(comment.Comment); - commentText.AppendLine(); - commentText.AppendLine(); if (!String.IsNullOrEmpty(comment.Suggestion)) { - commentText.AppendLine($"Suggestion : `{comment.Suggestion}`"); - commentText.AppendLine(); commentText.AppendLine(); + commentText.AppendLine($"Suggestion : `{comment.Suggestion}`"); } - if (comment.GuidelineIds.Count > 0) + if (commentModel.GuidelineIds.Count > 0) { + commentText.AppendLine(); commentText.AppendLine("**Guidelines**"); - foreach (string guidelineId in comment.GuidelineIds) + foreach (string guidelineId in commentModel.GuidelineIds) { - commentText.AppendLine(); - commentText.AppendLine($"https://azure.github.io/azure-sdk/{guidelineId}"); + commentText.AppendLine($"- https://azure.github.io/azure-sdk/{guidelineId}"); } }