File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,4 @@ __pycache__/
99node_modules
1010.docusaurus
1111docs /build /
12+ dist /
Original file line number Diff line number Diff 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 , []
You can’t perform that action at this time.
0 commit comments