Skip to content

Commit

Permalink
Ignore case to match GH-42 and gh-42 (#334)
Browse files Browse the repository at this point in the history
Fixes: #333
  • Loading branch information
tiran authored Jul 9, 2022
1 parent e1e782b commit 47095d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion master/custom/pr_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ def sendMessage(self, reports):
if not change_comments:
return

m = re.search(r"\((?:GH-|#)(\d+)\)", change_comments)
# GH-42, gh-42, or #42
m = re.search(r"\((?:GH-|#)(\d+)\)", change_comments, flags=re.IGNORECASE)

if m is None:
return
Expand Down

0 comments on commit 47095d3

Please sign in to comment.