提交 84583086 编写于 作者: Y yukon

Polish merge script, use old title if input is null

上级 1b853e81
......@@ -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])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册