style: remove entry info from the todo section header

related comment: https://github.com/qodo-ai/pr-agent/pull/1869#issuecomment-2979088345
This commit is contained in:
dst03106
2025-06-18 16:59:42 +09:00
committed by Judy
parent 8325a8aeb1
commit 38f10e10fa

View File

@ -284,9 +284,8 @@ def convert_to_markdown_v2(output_data: dict,
markdown_text += f"{emoji}&nbsp;<strong>No TODO sections</strong>"
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}&nbsp;<strong>TODO sections ({todo_entry_label})</strong>\n<br><br>\n"
markdown_text += f"{emoji}&nbsp;<strong>TODO sections</strong>\n<br><br>\n"
markdown_text += f"<details><summary>{todo_summary}</summary>\n\n"
markdown_text += markdown_todo_items
markdown_text += "\n</details>\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<details><summary>{todo_summary}</summary>\n\n"
markdown_text += f"### {emoji} TODO sections\n<details><summary>{todo_summary}</summary>\n\n"
markdown_text += markdown_todo_items
markdown_text += "\n</details>\n\n"
elif 'can be split' in key_nice.lower():