From 845830865fc37d0364a19cbd89ceaf8a30b37e1c Mon Sep 17 00:00:00 2001 From: yukon Date: Wed, 30 Aug 2017 00:06:13 +0800 Subject: [PATCH] Polish merge script, use old title if input is null --- dev/merge_rocketmq_pr.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dev/merge_rocketmq_pr.py b/dev/merge_rocketmq_pr.py index 3a2388bf..afc597a6 100644 --- a/dev/merge_rocketmq_pr.py +++ b/dev/merge_rocketmq_pr.py @@ -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]) -- GitLab