From 3adf9238044125f3a732836df6487ce04ad14a33 Mon Sep 17 00:00:00 2001 From: Yee <2520865+yixinglu@users.noreply.github.com> Date: Tue, 2 Nov 2021 18:46:01 +0800 Subject: [PATCH] Enhance commit message process (#4) --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index c038e1a..195dc09 100755 --- a/main.py +++ b/main.py @@ -54,8 +54,10 @@ def extract_pr_num_and_title(self, commit): return msg = prog.match(commit.commit.message) if msg: - self.title = msg.group(1).strip() self.pr_num = int(msg.group(2)) + while msg: + self.title = msg.group(1).strip() + msg = prog.match(self.title) else: msg = title_re.match(commit.commit.message) if msg: