From 6c9ad3a58c1df4d7c00719fe7faa5b17ba5799b1 Mon Sep 17 00:00:00 2001 From: PhilNewm Date: Mon, 4 Nov 2024 16:59:23 +0100 Subject: [PATCH] Add details formatting to changelog --- src/conversion_logic.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/conversion_logic.py b/src/conversion_logic.py index 0923270..73dfb4f 100644 --- a/src/conversion_logic.py +++ b/src/conversion_logic.py @@ -135,10 +135,14 @@ def format_changelog_markdown(changes: List[Changelog], changelog_label_list: Li continue formatted_label: str = label.removeprefix("type: ").capitalize() - changelog += f"\n## {formatted_label}\n\n" + changelog += f"\n### **{formatted_label}**\n\n" for change in changes: if label in change.labels: - changelog += f"* {change.title} - [{change.number}]({change.url})\n" + changelog += f"
\n" + changelog += f"{change.title} - [#{change.number}]({change.url})\n\n" + changelog += f"details\n\n\n" + changelog += f"___\n\n" + changelog += f"
" return changelog \ No newline at end of file