|
@@ -71,10 +71,9 @@ for commit in subprocess.check_output(['git', 'log', '--pretty=oneline']).decode
|
|
print("Commit seems reverted. \t\t\t Commit: " + commit)
|
|
print("Commit seems reverted. \t\t\t Commit: " + commit)
|
|
continue
|
|
continue
|
|
ACTUAL_PROJECT_JIRA = None
|
|
ACTUAL_PROJECT_JIRA = None
|
|
- for project_jira in project_jira_keys:
|
|
|
|
- if project_jira in commit:
|
|
|
|
- ACTUAL_PROJECT_JIRA = project_jira
|
|
|
|
- break
|
|
|
|
|
|
+ matches = re.findall('|'.join(project_jira_keys), commit)
|
|
|
|
+ if matches:
|
|
|
|
+ ACTUAL_PROJECT_JIRA = matches[0]
|
|
if not ACTUAL_PROJECT_JIRA:
|
|
if not ACTUAL_PROJECT_JIRA:
|
|
print("WARN: Jira not found. \t\t\t Commit: " + commit)
|
|
print("WARN: Jira not found. \t\t\t Commit: " + commit)
|
|
continue
|
|
continue
|