Skip to content

Commit

Permalink
fix: TET-135 export tetrisly from package
Browse files Browse the repository at this point in the history
  • Loading branch information
kudyniuk committed Oct 4, 2023
1 parent 0c4b917 commit d9aa4bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
];
},
Expand Down

0 comments on commit d9aa4bd

Please sign in to comment.