feat: include item count in TODO sections summary

This commit is contained in:
dst03106
2025-06-01 00:36:25 +09:00
parent 8c7c087931
commit 520faa7f2c

View File

@ -274,7 +274,7 @@ def convert_to_markdown_v2(output_data: dict,
if is_value_no(value):
markdown_text += f"{emoji}&nbsp;<strong>No TODO sections</strong>"
else:
markdown_text += f"<details><summary>{emoji}&nbsp;<strong>TODO sections</strong></summary>\n\n"
markdown_text += f"<details><summary>{emoji}&nbsp;<strong>TODO sections ({len(value)} items)</strong></summary>\n\n"
if isinstance(value, list):
markdown_text += "<ul>\n"
for todo_item in value: