From d9aa4bd52c5feb673e907a119df9a86345e240e2 Mon Sep 17 00:00:00 2001 From: Wojciech Kudyniuk Date: Wed, 4 Oct 2023 17:36:48 +0200 Subject: [PATCH] fix: TET-135 export tetrisly from package --- commitlint.config.cjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commitlint.config.cjs b/commitlint.config.cjs index 5dd4fc49..0b300245 100644 --- a/commitlint.config.cjs +++ b/commitlint.config.cjs @@ -3,12 +3,12 @@ module.exports = { plugins: [ { rules: { - 'jira-ticket': ({ subject }) => { + 'jira-ticket': ({ subject, scope }) => { const shouldContainJiraTicket = /TET-[0-9]{2,}/; const orNoJira = /NO-JIRA/; const isReleaseMessage = /release/ return [ - shouldContainJiraTicket.test(subject) || orNoJira.test(subject) || isReleaseMessage.test(subject), + shouldContainJiraTicket.test(subject) || orNoJira.test(subject) || isReleaseMessage.test(scope), `Your subject should contain Jira ticket (TET-XX) or NO-JIRA`, ]; },