diff --git a/index.js b/index.js index 4f7701d..47f501a 100644 --- a/index.js +++ b/index.js @@ -2,7 +2,7 @@ const core = require('@actions/core'); const github = require('@actions/github'); try { - const jirakey = core.getInput('jirakey').toLowerCase() + const jirakey = core.getInput('jirakey').toLowerCase().replace(' ', '') const pattern = '^(build|ci|chore|docs|feat|fix|perf|refactor|revert|style|task|test)(.*)(:\\s)(' + jirakey + '-\\d+\\s*|none)+(:)' const regex = new RegExp(pattern) if (github.context.payload && github.context.payload.pull_request) {