mirror of
https://github.com/apache/rocketmq.git
synced 2026-08-28 20:09:14 +08:00
Polish merge script, use old title if input is null
This commit is contained in:
@@ -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])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user