-
Notifications
You must be signed in to change notification settings - Fork 32
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
提交代码规范和自动检查 #92
提交代码规范和自动检查 #92
Conversation
@huzhengen is attempting to deploy a commit to the OpenBuild Team on Vercel. A member of the Team first needs to authorize it. |
package.json
Outdated
@@ -124,6 +132,7 @@ | |||
"@types/sha256": "^0.2.0", | |||
"astro": "4.16.7", | |||
"autoprefixer": "^10.4.12", | |||
"commitizen": "4.3.1", |
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.
这几个新增的依赖应该是 devDependencies
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.
这几个依赖是加在 devDependencies
的,没加在 dependencies
里。
在提交代码时增加校验
使用 git commit 时需要按照规范填写信息
运行 npm run commit 会启动交互式提交向导
GitHub Actions 在提交 PR 时校验 commit message