mirror of
https://gitee.com/was666/as-editor.git
synced 2026-06-16 00:00:02 +08:00
15 lines
455 B
JavaScript
15 lines
455 B
JavaScript
// const msgPath = process.env.HUSKY_GIT_PARAMS
|
|
// const msg = require('fs').readFileSync(msgPath, 'utf-8').trim()
|
|
|
|
// const commitRE = /^(merge|feat|fix|docs|style|refactor|perf|test|workflow|build|ci|chore|release|workflow)(\(.+\))?: .{1,50}/
|
|
|
|
// if (!commitRE.test(msg)) {
|
|
// console.log()
|
|
// console.error(`
|
|
// 不合法的 commit 消息格式。
|
|
// 请查看 git commit 提交规范:feat: XXXXX
|
|
// `)
|
|
|
|
// process.exit(1)
|
|
// }
|