commitlint config-conventional - Add prefix for commit messages

Viewed 1254

I am trying to implement commitlint for one of my repo so all the commit messages are standard. However, we have requirement to ADD JIRA ID as part of prefix.

currently, commitlint format is as below

subject(scope): message 

I need as mentioned below

JIRA-ID: subject(scope): message 

following works

parserPreset: {
    parserOpts: {
         issuePrefixes: ['w{2,4}-[0.9]{2,4}']
    }
}

However it validates that JIRA id should be at the end. someething like below

subject(scope): message JIRA-ID
1 Answers
Related