soybean-admin icon indicating copy to clipboard operation
soybean-admin copied to clipboard

[功能]: `git-commit-verify` 支持对提交消息应用忽略验证白名单

Open NHZEX opened this issue 8 months ago • 0 comments

描述

原始问题: https://github.com/soybeanjs/soybean-admin/issues/500

用于优化git功能执行自动生成提交消息被hook阻止问题。

建议的解决方案

对特定符合规则的提交消息允许忽略验证

替代方案

参考源:https://github.com/conventional-changelog/commitlint/blob/master/%40commitlint/is-ignored/src/defaults.ts#L17-L28

[
	test(
		/^((Merge pull request)|(Merge (.*?) into (.*?)|(Merge branch (.*?)))(?:\r?\n)*$)/m
	),
	test(/^(R|r)evert (.*)/),
	test(/^(fixup|squash)!/),
	isSemver,
	test(/^(Merged (.*?)(in|into) (.*)|Merged PR (.*): (.*))/),
	test(/^Merge remote-tracking branch(\s*)(.*)/),
	test(/^Automatic merge(.*)/),
	test(/^Auto-merged (.*?) into (.*)/),
]

额外的上下文

No response

NHZEX avatar Jun 17 '24 08:06 NHZEX