From 08440d8ebd3e1ca2283f30023a5ff93f159514d3 Mon Sep 17 00:00:00 2001 From: Judy Date: Tue, 27 May 2025 16:19:19 +0900 Subject: [PATCH] feat: Add
to TODO sections --- pr_agent/algo/utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pr_agent/algo/utils.py b/pr_agent/algo/utils.py index b5837c5c..a06eefc6 100644 --- a/pr_agent/algo/utils.py +++ b/pr_agent/algo/utils.py @@ -236,7 +236,7 @@ def convert_to_markdown_v2(output_data: dict, if is_value_no(value): markdown_text += f"{emoji} No TODO sections" else: - markdown_text += f"{emoji} TODO sections

\n\n" + markdown_text += f"
{emoji} TODO sections\n\n" if isinstance(value, list): markdown_text += "
    \n" for todo_item in value: @@ -244,17 +244,19 @@ def convert_to_markdown_v2(output_data: dict, markdown_text += "
\n" else: markdown_text += f"

{format_todo_item(value)}

\n" + markdown_text += "\n
\n" markdown_text += f"\n" else: if is_value_no(value): markdown_text += f"### {emoji} No TODO sections\n\n" else: - markdown_text += f"### {emoji} TODO sections\n\n" + markdown_text += f"
### {emoji} TODO sections\n\n" if isinstance(value, list): for todo_item in value: markdown_text += f"- {format_todo_item(todo_item)}\n" else: markdown_text += f"- {format_todo_item(value)}\n" + markdown_text += "\n
\n\n" elif 'can be split' in key_nice.lower(): if gfm_supported: markdown_text += f""