From da8255e46796bd93b96fcb0bb83de7aa910386f2 Mon Sep 17 00:00:00 2001 From: Kamil Potrec Date: Tue, 7 Oct 2025 11:33:27 +0100 Subject: [PATCH] fix: skip no changes --- scripts/changelog.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/changelog.py b/scripts/changelog.py index 55fe16a2..ca0a258f 100644 --- a/scripts/changelog.py +++ b/scripts/changelog.py @@ -173,11 +173,13 @@ def parse_changelog_for_changes(package_dir: str) -> bool: raise Exception(f"Could not generate changelog for {package_dir}: {stderr}") if not stdout.strip(): - raise Exception(f"No changelog output for {package_dir}") + return False # No changelog output means no changes lines = stdout.split('\n') + + # If the first line is not "## Unreleased", it means there are no unreleased changes if not lines[0].strip().startswith("## Unreleased"): - raise Exception(f"Expected '## Unreleased' at top of changelog output, got: {lines[0]}") + return False # No unreleased changes changes = [] for line in lines[1:]: