Skip to content

Commit

Permalink
Merge pull request #1 from worksome/JIRA-6760_send-commit-to-jira-v2
Browse files Browse the repository at this point in the history
fix: JIRA-6760 Use array of commit message strings instead
  • Loading branch information
Odinn Adalsteinsson authored Aug 24, 2022
2 parents 83fee05 + 1b40b01 commit e75242b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e75242b

Please sign in to comment.