Skip to content

Commit 2da0b14

Browse files
committed
ci(commitlint): 给提交主题装上五十字上限
1 parent e033507 commit 2da0b14

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎commitlint.config.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = {
1313
],
1414
// 中文 subject 不适用大小写规则
1515
'subject-case': [0],
16+
'subject-max-length': [2, 'always', 50],
1617
// semantic-release 自动发布提交(chore(release): vX.Y.Z)的 body 由 release notes
1718
// 生成,天然含超长 commit URL 行;人工提交贴链接同样常见。
1819
// 行长限制在此场景只会拦截合法提交(已实际导致 v0.25.0 发布失败),故禁用。

0 commit comments

Comments
 (0)