test: 测试提交

This commit is contained in:
WANGFAN\wangf 2024-12-05 19:01:19 +08:00
parent 4def49b301
commit 2346f41369
2 changed files with 46 additions and 2 deletions

2
.husky/_/.gitignore vendored
View File

@ -1 +1 @@
*
*

View File

@ -1,3 +1,47 @@
module.exports = {
extends: ["@commitlint/config-conventional"]
ignores: [commit => commit.includes("init")],
extends: ["@commitlint/config-conventional"],
rules: {
"body-leading-blank": [2, "always"],
"footer-leading-blank": [1, "always"],
"header-max-length": [2, "always", 108],
"subject-empty": [2, "never"],
"type-empty": [2, "never"],
"type-enum": [
2,
"always",
[
"feat",
"fix",
"style",
"perf",
"refactor",
"test",
"chore",
"docs",
"workflow",
"build",
"ci",
"revert",
"wip",
"release",
"deps"
// feat新功能feature
// fix修补bug
// style 格式(不影响代码运行的变动)
// perf: 性能相关
// refactor重构即不是新增功能也不是修改bug的代码变动
// test测试
// chore: 其他修改(不在上述类型中的修改)
// docs文档documentation
// workflow: 工作流
// build: 项目打包构建相关的配置修改
// ci: 持续集成相关
// revert: 恢复上一次提交(回滚)
// wip: work in progress 工作中 还没完成
// release: 发版
// deps: 依赖相关的修改
]
]
}
};