mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
ci: increase commitlint length tolerance in CI (#2094)
This commit is contained in:
parent
6146230a09
commit
3537d30e63
1 changed files with 5 additions and 1 deletions
|
@ -1,10 +1,14 @@
|
|||
const { rules } = require('@commitlint/config-conventional');
|
||||
|
||||
const isCi = process.env.CI === 'true';
|
||||
|
||||
/** @type {import('@commitlint/types').UserConfig} **/
|
||||
module.exports = {
|
||||
extends: ['@commitlint/config-conventional'],
|
||||
rules: {
|
||||
'type-enum': [2, 'always', [...rules['type-enum'][2], 'api', 'release']],
|
||||
'scope-enum': [2, 'always', ['connector', 'console', 'core', 'demo-app', 'test', 'phrases', 'schemas', 'shared', 'ui', 'deps', 'connector-core', 'cli']]
|
||||
'scope-enum': [2, 'always', ['connector', 'console', 'core', 'demo-app', 'test', 'phrases', 'schemas', 'shared', 'ui', 'deps', 'connector-core', 'cli']],
|
||||
// Slightly increase the tolerance to allow the appending PR number
|
||||
...(isCi && { 'header-max-length': [2, 'always', 110] })
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue