Skip to content

Commit

Permalink
Skip empty sections in release notes (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Czaki authored Sep 26, 2024
1 parent 2ecb3f2 commit 0a4716c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generate_release_notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a4716c

Please sign in to comment.