Skip to content

Commit da77a98

Browse files
wphillipmoorewphillipmoore-claude
andauthored
fix: sync prepare_release.py empty changelog abort from canonical (#307)
Co-authored-by: wphillipmoore-claude <255925739+wphillipmoore-claude@users.noreply.github.com>
1 parent 9e66992 commit da77a98

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

scripts/dev/prepare_release.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,14 @@ def generate_changelog(version: str) -> bool:
188188
encoding="utf-8",
189189
)
190190
run_command(("git", "add", "CHANGELOG.md"))
191+
status = read_command_output(("git", "status", "--porcelain"))
192+
if not status:
193+
message = (
194+
f"No publishable changes since the last release.\n"
195+
f"All commits after develop-v{version} are filtered by git-cliff.\n"
196+
f"Aborting release preparation."
197+
)
198+
raise SystemExit(message)
191199
run_command(("git", "commit", "-m", f"chore: prepare release {version}"))
192200
return True
193201

0 commit comments

Comments
 (0)