Skip to content

Commit

Permalink
Polish merge script, use old title if input is null
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouxinyu committed Aug 29, 2017
1 parent 1b853e8 commit 4372eb9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dev/merge_rocketmq_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,10 @@ def merge_pr(pr_num, target_ref, title, body, pr_repo_desc):

merge_message_flags = []

title = raw_input("Modify commit log [%s]: " % title)
merge_message_flags += ["-m", title]
modified_title = raw_input("Modify commit log [%s]: " % title)
if modified_title == "":
modified_title = title
merge_message_flags += ["-m", modified_title]

authors = "\n".join(["Author: %s" % a for a in distinct_authors])

Expand Down

0 comments on commit 4372eb9

Please sign in to comment.