Apache DataFusion SQL Query Engine
[Developer] Fix merge script regression, use default primary author if empty input
Wes McKinney98adf4061e8e
diff --git a/dev/merge_arrow_pr.py b/dev/merge_arrow_pr.pyindex f37dbf78f7..92c4e315f5 100755--- a/dev/merge_arrow_pr.py+++ b/dev/merge_arrow_pr.py@@ -440,7 +440,7 @@ def get_primary_author(cmd, distinct_authors):"\"name <email>\" [%s]: " % distinct_authors[0])if primary_author == "":- return primary_author, distinct_authors+ return distinct_authors[0], distinct_authorsif author_pat.match(primary_author):breakdiff --git a/dev/test_merge_arrow_pr.py b/dev/test_merge_arrow_pr.pyindex 2f940fa305..6f637b7d10 100644--- a/dev/test_merge_arrow_pr.py+++ b/dev/test_merge_arrow_pr.py@@ -188,6 +188,12 @@ def test_multiple_authors_bad_input():a2 = 'Hank Miller <[email protected]>'distinct_authors = [a0, a1]+ cmd = FakeCLI(responses=[''])+ primary_author, new_distinct_authors = merge_arrow_pr.get_primary_author(+ cmd, distinct_authors)+ assert primary_author == a0+ assert new_distinct_authors == [a0, a1]+cmd = FakeCLI(responses=['oops', a1])primary_author, new_distinct_authors = merge_arrow_pr.get_primary_author(cmd, distinct_authors)