From 1b40b01f9633ed403d2b3bb70997612511ddb609 Mon Sep 17 00:00:00 2001 From: Odinn Adalsteinsson Date: Wed, 24 Aug 2022 11:27:43 +0200 Subject: [PATCH] fix: JIRA-6760 Use array of commit message strings instead --- src/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 4ef583b..ec4446e 100644 --- a/src/index.js +++ b/src/index.js @@ -35,8 +35,7 @@ function isValidHttpUrl(string) { } function getJiraIssueKey(commit) { - let commitMsg = commit.message; - return commitMsg.match(/JIRA-\d+/i); + return commit.match(/JIRA-\d+/i); } function sendRequestToJira(jiraWebhookUrl, jiraIssue) {