CI / openapi (push) Has been cancelled
CI / web (push) Has been cancelled
CI / changes (push) Has been cancelled
CI / go (push) Has been cancelled
CI / bird2 (push) Has been cancelled
CI / commitlint (push) Has been cancelled
CI / release (push) Has been cancelled
23 lines
453 B
JavaScript
23 lines
453 B
JavaScript
/** @type {import('@commitlint/types').UserConfig} */
|
|
module.exports = {
|
|
extends: ['@commitlint/config-conventional'],
|
|
plugins: [
|
|
{
|
|
rules: {
|
|
'scope-no-commas': ({ scope }) => {
|
|
if (scope && scope.includes(',')) {
|
|
return [
|
|
false,
|
|
'scope must not contain commas (semantic-release will not parse the commit type)'
|
|
];
|
|
}
|
|
return [true];
|
|
}
|
|
}
|
|
}
|
|
],
|
|
rules: {
|
|
'scope-no-commas': [2, 'always']
|
|
}
|
|
};
|