-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: add pre-commit check commitizen #8
Conversation
CodeChenL
commented
Feb 26, 2024
•
edited by RadxaYuntian
Loading
edited by RadxaYuntian
- fix 使用commitizen检查commit格式 #5
- fix commit信息禁止出现update #4
你这没有修复#4对应的脚本啊 |
.pre-commit-config.yaml
Outdated
stages: | ||
- post-commit | ||
- push |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
应该是post-checkout stage:https://pre-commit.com/#post-checkout
另外我才注意到这个是radxa-docs/pre-commit-hooks。这个hook其实是要放到documentation里面的,这个仓库只涉及我们自定义的hook。 |
我想着是先加在这个仓库实验,也没坏处 |
是的,因为以后也要加到别的仓库里面去 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commitizen-branch在documentation那边测试过了么
提交和push没问题 |
我的意思是 |
这边合并了documentation那边会以这边的实现为参考进行对比 |
使用自定义正则解决#4 |
.cz.toml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
别把所有的东西都放进来,只把我们自己修改过的部分留着。其他保持默认的就不要放进来
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
squash