diff --git a/scripts/verifyCommitMsg.js b/scripts/verifyCommitMsg.js index 2c2f58707..c6be475a4 100644 --- a/scripts/verifyCommitMsg.js +++ b/scripts/verifyCommitMsg.js @@ -2,7 +2,7 @@ const chalk = require('chalk') // eslint-disable-line const msgPath = process.env.GIT_PARAMS const msg = require('fs').readFileSync(msgPath, 'utf-8').trim() -const commitRE = /^(v\d+\.\d+\.\d+(-(alpha|beta|rc.\d+))?$)|((revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?: .{1,50})/ +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})/ if (!commitRE.test(msg)) { console.log()