Skip to content

Commit

Permalink
skip empty sections
Browse files Browse the repository at this point in the history
  • Loading branch information
Czaki committed Sep 3, 2024
1 parent 2ecb3f2 commit f196a01
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 f196a01

Please sign in to comment.