Consider having two jira projects with ids like "ABC" and "BC". Then you create a commit with a subject line saying "ABC-1 bugfix for blah blah".
As a result two jira issues will be commented by jirret: ABC-1 and BC-1.
re.findall is too greedy.
issue_needle = '(%s-[0-9]+)'
matches = re.findall(issue_needle % p, issue_haystack)
Consider having two jira projects with ids like "ABC" and "BC". Then you create a commit with a subject line saying "ABC-1 bugfix for blah blah".
As a result two jira issues will be commented by jirret: ABC-1 and BC-1.
re.findall is too greedy.