Allow reviewers to be entered during merge

This commit is contained in:
Ismael Juma 2015-07-21 10:28:41 +01:00
parent ac06347e04
commit 900c371703
1 changed files with 6 additions and 0 deletions

View File

@ -136,6 +136,9 @@ def merge_pr(pr_num, target_ref, title, body, pr_repo_desc):
if primary_author == "":
primary_author = distinct_authors[0]
reviewers = raw_input(
"Enter reviewers in the format of \"name1 <email1>, name2 <email2>\": ").strip()
commits = run_cmd(['git', 'log', 'HEAD..%s' % pr_branch_name,
'--pretty=format:%h [%an] %s']).split("\n\n")
@ -151,6 +154,9 @@ def merge_pr(pr_num, target_ref, title, body, pr_repo_desc):
merge_message_flags += ["-m", authors]
if (reviewers != ""):
merge_message_flags += ["-m", "Reviewers: %s" % reviewers]
if had_conflicts:
committer_name = run_cmd("git config --get user.name").strip()
committer_email = run_cmd("git config --get user.email").strip()