Skip to content

Commit

Permalink
Simplify major_versions logic
Browse files Browse the repository at this point in the history
  • Loading branch information
raulcd committed Apr 26, 2024
1 parent 3073cc9 commit 7fbc918
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions dev/merge_arrow_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,7 @@ def version_tuple(x):

# Only suggest versions starting with a number, like 0.x but not JS-0.x
mainline_versions = all_versions
major_versions = []
for v in mainline_versions:
(major, minor, patch) = v.split(".")
if patch == "0" and minor == "0":
major_versions.append(v)
major_versions = [v for v in mainline_versions if v.endswith('.0.0')]

if len(mainline_versions) > len(major_versions):
# If there is a future major release, suggest that
Expand Down

0 comments on commit 7fbc918

Please sign in to comment.