Skip to content

Commit

Permalink
Enhance commit message process (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
yixinglu committed Nov 2, 2021
1 parent 9f00302 commit 3adf923
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3adf923

Please sign in to comment.