workflow: allow build as commit type
This commit is contained in:
parent
38109fe915
commit
bc8b1678f4
@ -6,7 +6,7 @@ const msg = require('fs')
|
|||||||
.readFileSync(msgPath, 'utf-8')
|
.readFileSync(msgPath, 'utf-8')
|
||||||
.trim()
|
.trim()
|
||||||
|
|
||||||
const commitRE = /^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?: .{1,50}/
|
const commitRE = /^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|build|ci|chore|types)(\(.+\))?: .{1,50}/
|
||||||
|
|
||||||
if (!commitRE.test(msg)) {
|
if (!commitRE.test(msg)) {
|
||||||
console.log()
|
console.log()
|
||||||
|
Loading…
Reference in New Issue
Block a user