mirror of
https://github.com/logto-io/logto.git
synced 2025-01-20 21:32:31 -05:00
e5f8139880
Co-authored-by: Xiao Yijun <xiaoyijun@silverhand.io> Co-authored-by: IceHe <icehe@silverhand.io> Co-authored-by: Gao Sun <gao@silverhand.io> Co-authored-by: simeng-li <simeng@silverhand.io> Co-authored-by: Charles Zhao <charleszhao@silverhand.io> Co-authored-by: Mahesh Vagicherla <59088937+b4s36t4@users.noreply.github.com> Co-authored-by: FlurryNight <47457170+FlurryNight@users.noreply.github.com> Co-authored-by: Lukas <lukas@slucky.de> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
14 lines
614 B
JavaScript
14 lines
614 B
JavaScript
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']],
|
|
// Slightly increase the tolerance to allow the appending PR number
|
|
...(isCi && { 'header-max-length': [2, 'always', 110] })
|
|
},
|
|
};
|