From f196a01deb289eb907ccc94df5f44646cfb04e26 Mon Sep 17 00:00:00 2001 From: Grzegorz Bokota Date: Tue, 3 Sep 2024 15:04:46 +0200 Subject: [PATCH] skip empty sections --- generate_release_notes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/generate_release_notes.py b/generate_release_notes.py index 5381f54..abf308f 100644 --- a/generate_release_notes.py +++ b/generate_release_notes.py @@ -281,6 +281,8 @@ def parse_pull(pull: PullRequest, repo_: Repository = repo): print(intro, file=file_handle) for section, pull_request_dicts in highlights.items(): + if not pull_request_dicts: + continue print(f'## {section}\n', file=file_handle) section_path = ( LOCAL_DIR