diff --git a/pr_agent/algo/utils.py b/pr_agent/algo/utils.py index 36ca8a15..c850c7fd 100644 --- a/pr_agent/algo/utils.py +++ b/pr_agent/algo/utils.py @@ -51,7 +51,7 @@ def convert_to_markdown(output_data: dict, gfm_supported: bool=True) -> str: markdown_text += f"## PR Review\n\n" if gfm_supported: markdown_text += "
PR feedback | PR feedback | """ if not output_data or not output_data.get('review', {}): return "" @@ -62,7 +62,22 @@ def convert_to_markdown(output_data: dict, gfm_supported: bool=True) -> str: key_nice = key.replace('_', ' ').capitalize() emoji = emojis.get(key_nice, "") if gfm_supported: - markdown_text += f" |
{emoji} {key_nice} | \n\n{value}\n\n |
{emoji} {key_nice} | \n" + for i, issue in enumerate(issues): + issue = issue.strip('-').strip() + if i == 0: + markdown_text += f"\n\n{issue} |
\n\n{issue} | |
{emoji} {key_nice} | \n\n{value}\n\n |
{emoji} {key_nice} | \n\n{value}\n\n |