diff --git a/pr_agent/algo/utils.py b/pr_agent/algo/utils.py index 42f45990..1db3dd53 100644 --- a/pr_agent/algo/utils.py +++ b/pr_agent/algo/utils.py @@ -91,7 +91,7 @@ def convert_to_markdown(output_data: dict, gfm_supported: bool = True, increment markdown_text += f"## Incremental PR Reviewer Guide 🔍\n\n" markdown_text += f"⏮️ Review for commits since previous PR-Agent review {incremental_review}.\n\n" if gfm_supported: - markdown_text += "\n\n" + markdown_text += "
\n" # markdown_text += """""" if not output_data or not output_data.get('review', {}): @@ -108,7 +108,7 @@ def convert_to_markdown(output_data: dict, gfm_supported: bool = True, increment key_nice = 'Estimated effort to review [1-5]' if 'security concerns' in key_nice.lower(): value = emphasize_header(value.strip()) - markdown_text += f"\n" + markdown_text += f"\n" elif 'can be split' in key_nice.lower(): markdown_text += process_can_be_split(emoji, value) elif 'key issues to review' in key_nice.lower(): @@ -124,12 +124,14 @@ def convert_to_markdown(output_data: dict, gfm_supported: bool = True, increment if not issue: continue issue = emphasize_header(issue) + issue = replace_code_tags(issue) if i == 0: markdown_text += f"\n" else: markdown_text += f"\n\n" else: value = emphasize_header(value.strip('-').strip()) + value = replace_code_tags(value) markdown_text += f"\n" else: markdown_text += f"\n"
      Feedback            
{emoji} {key_nice}\n\n{value}\n\n
{emoji} {key_nice}\n{value}\n\n
\n{issue}
\n{issue}
{emoji} {key_nice}\n{value}\n\n
{emoji} {key_nice}\n{value}\n\n