HADOOP-18251. Fix failure of extracting JIRA id from commit message in git_jira_fix_version_check.py. (#4344)
This commit is contained in:
parent
84b0455cf8
commit
6b331dde31
@ -71,10 +71,9 @@
|
|||||||
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:
|
matches = re.findall('|'.join(project_jira_keys), commit)
|
||||||
if project_jira in commit:
|
if matches:
|
||||||
ACTUAL_PROJECT_JIRA = project_jira
|
ACTUAL_PROJECT_JIRA = matches[0]
|
||||||
break
|
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user