diff --git a/pr_agent/algo/utils.py b/pr_agent/algo/utils.py index 4ce4b389..5eba1a91 100644 --- a/pr_agent/algo/utils.py +++ b/pr_agent/algo/utils.py @@ -164,6 +164,7 @@ def convert_to_markdown_v2(output_data: dict, if gfm_supported: markdown_text += "\n" + todos_summary = output_data['review'].pop('todos_summary', '') for key, value in output_data['review'].items(): if value is None or value == '' or value == {} or value == []: if key.lower() not in ['can_be_split', 'key_issues_to_review']: @@ -274,7 +275,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 ({len(value)} items)\n\n" + markdown_text += f"{emoji} TODO sections ({len(value)} items)\n
{todos_summary}\n\n" if isinstance(value, list): markdown_text += "