release notes: keep the Full Changelog link when no one is new

Without a New Contributors section the changelog line follows the PR list
directly, so it was read as part of What's Changed and dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Chris LuandClaude Opus 5.5 committed 2026-11-17 19:41:08 -08:00
1 parent 1fb0d8d53f
commit 7144c3c5cf
2 files changed
+9 -1

No files matched your search

@@ -204,7 +204,8 @@ def split_notes(body):
start = next((i for i, l in enumerate(lines) if l.strip() == "## What's Changed"), None)
if start is None:
return [], body, ""
end = next((i for i in range(start + 1, len(lines)) if lines[i].startswith("## ")), len(lines))
end = next((i for i in range(start + 1, len(lines))
if lines[i].startswith(("## ", "**Full Changelog**"))), len(lines))
prs = [l for l in lines[start + 1:end] if PR_LINE.match(l)]
before = "\n".join(lines[:start]).rstrip()
after = "\n".join(lines[end:]).strip()