From 214bd2e1e09b3d08d46aed4628179463d4888d52 Mon Sep 17 00:00:00 2001 From: Greyson LaLonde Date: Tue, 19 May 2026 23:47:47 +0800 Subject: [PATCH] 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. --- lib/devtools/src/crewai_devtools/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/devtools/src/crewai_devtools/cli.py b/lib/devtools/src/crewai_devtools/cli.py index 070e22e7d..74f550be5 100644 --- a/lib/devtools/src/crewai_devtools/cli.py +++ b/lib/devtools/src/crewai_devtools/cli.py @@ -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(