Skip to content

Commit 3f2e5d8

Browse files
committed
wip
1 parent 4eb1670 commit 3f2e5d8

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ __pycache__/
99
node_modules
1010
.docusaurus
1111
docs/build/
12+
dist/

src/release_tool/git_ops.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -504,13 +504,10 @@ def get_release_commit_range(
504504
except Exception:
505505
return None, []
506506

507-
try:
508-
commits = git_ops.get_commits_for_version_range(comparison_version, target_version)
507+
# Always use head_ref as the target for generating release notes
508+
# This ensures we generate notes from the release branch, not from existing tags
509+
from_tag = git_ops._find_tag_for_version(comparison_version)
510+
if from_tag:
511+
commits = git_ops.get_commits_between_refs(from_tag, head_ref)
509512
return comparison_version, commits
510-
except ValueError:
511-
# Target version tag doesn't exist yet, compare from comparison to head_ref
512-
from_tag = git_ops._find_tag_for_version(comparison_version)
513-
if from_tag:
514-
commits = git_ops.get_commits_between_refs(from_tag, head_ref)
515-
return comparison_version, commits
516-
return comparison_version, []
513+
return comparison_version, []

0 commit comments

Comments
 (0)