soybean-admin
soybean-admin copied to clipboard
[功能]: `git-commit-verify` 支持对提交消息应用忽略验证白名单
描述
原始问题: 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