enhancement(tooling): commitlint improvements

This commit is contained in:
Ben Irvin 2024-03-20 12:52:45 +01:00
parent 6b73e9c201
commit 3ebbf1fb59

View File

@ -8,19 +8,29 @@ const config: UserConfig = {
RuleConfigSeverity.Error, RuleConfigSeverity.Error,
'always', 'always',
[ [
'build',
'chore', 'chore',
'ci', 'ci',
'comments',
'docs', 'docs',
'enh',
'enhancement', 'enhancement',
'feat', 'feat',
'fix', 'fix',
'release', 'release',
'revert', 'revert',
'security', 'security',
'style',
'test', 'test',
], ],
], ],
}, },
ignores: [
(commitMessage) => {
// add an exception for github
return /^Merge branch '.*' into [a-zA-Z0-9\/\-_]+$/.test(commitMessage);
},
],
}; };
export default config; export default config;