fix: always skip current bump in devtools tag release notes

The tag command runs after the bump PR is merged, so the bump commit is
in history regardless of --dry-run. Passing bump_already_done=not dry_run
caused dry-run previews to use the bump commit as the range start and
produce empty release notes.
This commit is contained in:
Greyson LaLonde
2026-05-19 23:47:47 +08:00
parent 435fa2e123
commit 214bd2e1e0

View File

@@ -2086,7 +2086,7 @@ def tag(dry_run: bool, no_edit: bool) -> None:
console.print("[green]✓[/green] main branch up to date")
release_notes, openai_client, is_prerelease = _generate_release_notes(
version, tag_name, no_edit, bump_already_done=not dry_run
version, tag_name, no_edit, bump_already_done=True
)
docs_branch = _update_docs_and_create_pr(