Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Tracked by #480
NHZEX opened this issue Jun 17, 2024 · 0 comments
Closed
Tracked by #480
Labels
enhancement New feature or request

Comments

@NHZEX
Copy link
Contributor

NHZEX commented Jun 17, 2024

描述

原始问题: #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

@honghuangdc honghuangdc added the enhancement New feature or request label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants