File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -63,11 +63,10 @@ def calculate_next_version_with_changelog(
63
63
changelog : list [ChangeEntry ] = get_changelog_entries (previous_version_commit , repo , changelog_sub_path )
64
64
changelog_kinds = list (set (entry .kind for entry in changelog ))
65
65
66
- # If there is no previous version tag, we start with the initial version tag
67
- if not previous_version_tag :
68
- version = initial_version
69
- else :
70
- version = calculate_next_release_version (previous_version_tag .name , changelog_kinds )
66
+ # Use initial version if no previous tag exists, otherwise use the tag name
67
+ previous_version = previous_version_tag .name if previous_version_tag else initial_version
68
+
69
+ version = calculate_next_release_version (previous_version , changelog_kinds )
71
70
72
71
return version , changelog
73
72
You can’t perform that action at this time.
0 commit comments