Skip to content

Commit 228ab65

Browse files
committed
[SPARK-9179] [BUILD] Use default primary author if unspecified
Fixes feature introduced in apache#7508 to use the default value if nothing is specified in command line cc liancheng rxin pwendell Author: Shivaram Venkataraman <shivaram@cs.berkeley.edu> Closes apache#7558 from shivaram/merge-script-fix and squashes the following commits: 7092141 [Shivaram Venkataraman] Use default primary author if unspecified
1 parent 48f8fd4 commit 228ab65

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dev/merge_spark_pr.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ def merge_pr(pr_num, target_ref, title, body, pr_repo_desc):
133133
primary_author = raw_input(
134134
"Enter primary author in the format of \"name <email>\" [%s]: " %
135135
distinct_authors[0])
136+
if primary_author == "":
137+
primary_author = distinct_authors[0]
136138

137139
commits = run_cmd(['git', 'log', 'HEAD..%s' % pr_branch_name,
138140
'--pretty=format:%h [%an] %s']).split("\n\n")

0 commit comments

Comments
 (0)