mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
enhancement(tooling): commitlint improvements
This commit is contained in:
parent
6b73e9c201
commit
3ebbf1fb59
@ -8,19 +8,29 @@ const config: UserConfig = {
|
||||
RuleConfigSeverity.Error,
|
||||
'always',
|
||||
[
|
||||
'build',
|
||||
'chore',
|
||||
'ci',
|
||||
'comments',
|
||||
'docs',
|
||||
'enh',
|
||||
'enhancement',
|
||||
'feat',
|
||||
'fix',
|
||||
'release',
|
||||
'revert',
|
||||
'security',
|
||||
'style',
|
||||
'test',
|
||||
],
|
||||
],
|
||||
},
|
||||
ignores: [
|
||||
(commitMessage) => {
|
||||
// add an exception for github
|
||||
return /^Merge branch '.*' into [a-zA-Z0-9\/\-_]+$/.test(commitMessage);
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user