Skip to content

Commit d3c6575

Browse files
committed
chore(changelog): add build to commit messages
1 parent f74a758 commit d3c6575

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/verifyCommitMsg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const chalk = require('chalk') // eslint-disable-line
22
const msgPath = process.env.GIT_PARAMS
33
const msg = require('fs').readFileSync(msgPath, 'utf-8').trim()
44

5-
const commitRE = /^(v\d+\.\d+\.\d+(-(alpha|beta|rc.\d+))?$)|((revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?: .{1,50})/
5+
const commitRE = /^(v\d+\.\d+\.\d+(-(alpha|beta|rc.\d+))?$)|((revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types|build)(\(.+\))?: .{1,50})/
66

77
if (!commitRE.test(msg)) {
88
console.log()

0 commit comments

Comments
 (0)