diff --git a/index.js b/index.js index cc4c852..c7f8f06 100644 --- a/index.js +++ b/index.js @@ -8,7 +8,7 @@ async function run() { const prTitle = github.context.payload.pull_request.title; const prBody = github.context.payload.pull_request.body; - let regex = new RegExp(`${jiraPrefix}}-[0-9]+`); + let regex = new RegExp(`${jiraPrefix}-[0-9]+`); if (!regex.test(prTitle) || !regex.test(prBody)) { core.setFailed("Jira Issue Key missing in PR title or description."); return; diff --git a/package.json b/package.json index cc0d104..267b739 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jira-issue-key-checker", - "version": "1.5.0", + "version": "1.6.0", "description": "Checks If a PR contains the linked Jira issue key in both the title and the description.", "main": "index.js", "scripts": {