Skip to content

Commit 05cdd0b

Browse files
authored
Merge pull request #2 from Aparencia/dev
fix(ci): 放开 commitlint 行长限制修复发版自拦截
2 parents 40c8257 + b1583c4 commit 05cdd0b

1 file changed

Lines changed: 22 additions & 17 deletions

File tree

‎commitlint.config.js‎

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
1-
/**
2-
* @ai-context
3-
* commitlint 配置:校验 Conventional Commits,type 集合与 .releaserc.json releaseRules 严格对齐。
4-
* Commitlint config aligned with semantic-release commit-analyzer release rules.
5-
*/
6-
module.exports = {
7-
extends: ['@commitlint/config-conventional'],
8-
rules: {
9-
'type-enum': [
10-
2,
11-
'always',
12-
['feat', 'fix', 'perf', 'refactor', 'revert', 'docs', 'style', 'test', 'build', 'ci', 'chore'],
13-
],
14-
// 中文 subject 不适用大小写规则
15-
'subject-case': [0],
16-
},
17-
};
1+
/**
2+
* @ai-context
3+
* commitlint 配置:校验 Conventional Commits,type 集合与 .releaserc.json releaseRules 严格对齐。
4+
* Commitlint config aligned with semantic-release commit-analyzer release rules.
5+
*/
6+
module.exports = {
7+
extends: ['@commitlint/config-conventional'],
8+
rules: {
9+
'type-enum': [
10+
2,
11+
'always',
12+
['feat', 'fix', 'perf', 'refactor', 'revert', 'docs', 'style', 'test', 'build', 'ci', 'chore'],
13+
],
14+
// 中文 subject 不适用大小写规则
15+
'subject-case': [0],
16+
// semantic-release 自动发布提交(chore(release): vX.Y.Z)的 body 由 release notes
17+
// 生成,天然含超长 commit URL 行;人工提交贴链接同样常见。
18+
// 行长限制在此场景只会拦截合法提交(已实际导致 v0.25.0 发布失败),故禁用。
19+
'body-max-line-length': [0],
20+
'footer-max-line-length': [0],
21+
},
22+
};

0 commit comments

Comments
 (0)