From 87085a068e917fbf0e0534da0b26ac9133be1723 Mon Sep 17 00:00:00 2001 From: Bruno Alla Date: Sat, 30 Sep 2023 11:20:49 +0100 Subject: [PATCH] Fix issue with empty release in update_changelog script --- scripts/update_changelog.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/update_changelog.py b/scripts/update_changelog.py index 7d43a0b5..5f3ad5ec 100644 --- a/scripts/update_changelog.py +++ b/scripts/update_changelog.py @@ -32,6 +32,9 @@ def main() -> None: # Group pull requests by type of change grouped_pulls = group_pulls_by_change_type(merged_pulls) + if not any(grouped_pulls.values()): + print("Pull requests merged aren't worth a changelog mention.") + return # Generate portion of markdown release_changes_summary = generate_md(grouped_pulls)