You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by iw...@apache.org on 2022/05/26 03:32:19 UTC
[hadoop] branch branch-2.10 updated: HADOOP-18251. Fix failure of extracting JIRA id from commit message in git_jira_fix_version_check.py. (#4344)
This is an automated email from the ASF dual-hosted git repository.
iwasakims pushed a commit to branch branch-2.10
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/branch-2.10 by this push:
new 6b4c7cead45 HADOOP-18251. Fix failure of extracting JIRA id from commit message in git_jira_fix_version_check.py. (#4344)
6b4c7cead45 is described below
commit 6b4c7cead45273fe75b1b82be8769c26549b48ef
Author: Masatake Iwasaki <iw...@apache.org>
AuthorDate: Thu May 26 12:23:30 2022 +0900
HADOOP-18251. Fix failure of extracting JIRA id from commit message in git_jira_fix_version_check.py. (#4344)
(cherry picked from commit 6b331dde31cec2676a93406c9ecf699fc0675c8c)
---
dev-support/git-jira-validation/git_jira_fix_version_check.py | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/dev-support/git-jira-validation/git_jira_fix_version_check.py b/dev-support/git-jira-validation/git_jira_fix_version_check.py
index c2e12a13aae..513cc8e25ff 100644
--- a/dev-support/git-jira-validation/git_jira_fix_version_check.py
+++ b/dev-support/git-jira-validation/git_jira_fix_version_check.py
@@ -71,10 +71,9 @@ for commit in subprocess.check_output(['git', 'log', '--pretty=oneline']).decode
print("Commit seems reverted. \t\t\t Commit: " + commit)
continue
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:
print("WARN: Jira not found. \t\t\t Commit: " + commit)
continue
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org