diff --git a/.github/workflows/pr-validator.yml b/.github/workflows/pr-validator.yml index b5a4c90f..e483de02 100644 --- a/.github/workflows/pr-validator.yml +++ b/.github/workflows/pr-validator.yml @@ -14,11 +14,11 @@ jobs: const payload = context.payload const prTitle = payload.pull_request.title // The pattern for JIRA ticket format - const jiraPattern = /[A-Z]+-\d+/g + const jiraPattern = /([A-Z]+-\d+)|(breakglass)/gi; if (!jiraPattern.test(prTitle)) { console.log('The PR title does not match JIRA ticket format!') // Fails the workflow core.setFailed('PR title does not match JIRA ticket format!') } else { console.log('PR title format is correct.') - } \ No newline at end of file + }