From 38f10e10fa1d2fdcc99bfccd5a20a82d795847a8 Mon Sep 17 00:00:00 2001 From: dst03106 Date: Wed, 18 Jun 2025 16:59:42 +0900 Subject: [PATCH] style: remove entry info from the todo section header related comment: https://github.com/qodo-ai/pr-agent/pull/1869#issuecomment-2979088345 --- pr_agent/algo/utils.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pr_agent/algo/utils.py b/pr_agent/algo/utils.py index 28820fb8..261f2869 100644 --- a/pr_agent/algo/utils.py +++ b/pr_agent/algo/utils.py @@ -284,9 +284,8 @@ def convert_to_markdown_v2(output_data: dict, markdown_text += f"{emoji} No TODO sections" else: markdown_todo_items = format_todo_items(value) - todo_entry_label = f"{len(value)} " + "entries" if len(value) > 1 else "entry" - markdown_text += f"{emoji} TODO sections ({todo_entry_label})\n

\n" + markdown_text += f"{emoji} TODO sections\n

\n" markdown_text += f"
{todo_summary}\n\n" markdown_text += markdown_todo_items markdown_text += "\n
\n" @@ -296,9 +295,8 @@ def convert_to_markdown_v2(output_data: dict, markdown_text += f"### {emoji} No TODO sections\n\n" else: markdown_todo_items = format_todo_items(value) - todo_entry_label = f"{len(value)} " + "entries" if len(value) > 1 else "entry" - markdown_text += f"### {emoji} TODO sections ({todo_entry_label})\n
{todo_summary}\n\n" + markdown_text += f"### {emoji} TODO sections\n
{todo_summary}\n\n" markdown_text += markdown_todo_items markdown_text += "\n
\n\n" elif 'can be split' in key_nice.lower():