mirror of
https://github.com/alex8088/electron-vite.git
synced 2025-08-13 23:49:52 +08:00
chore: allow breaking commit message
This commit is contained in:
parent
28d7df6e91
commit
d2e8b1271b
@ -7,7 +7,7 @@ const msgPath = process.argv[2]
|
||||
const msg = fs.readFileSync(msgPath, 'utf-8').trim()
|
||||
|
||||
const commitRE =
|
||||
/^(revert: )?(feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release)(\(.+\))?: .{1,50}/
|
||||
/^(revert: )?(feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release)(\(.+\))?!?: .{1,50}/
|
||||
|
||||
if (!commitRE.test(msg)) {
|
||||
console.log()
|
||||
|
Loading…
x
Reference in New Issue
Block a user