Skip to content

Commit

Permalink
fix: 🐛 fix verify commit
Browse files Browse the repository at this point in the history
  • Loading branch information
easonchiu committed Jun 18, 2021
1 parent 3355126 commit 21f9e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/verify-commit-msg.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const commitRE = /^(revert: )?(feat|fix|polish|docs|style|refactor|perf|test|wor

console.log(`Commit: ${chalk.bgRed.white(msg)}`);

if (!commitRE.test(msg) && packageJson.version !== msg) {
if (!commitRE.test(msg) && packageJson.version !== msg && !/^v/.test(msg)) {
console.log();
console.error(` ${chalk.bgRed.white(' ERROR ')} 无效的提交信息`);
process.exit(1);
Expand Down

0 comments on commit 21f9e8d

Please sign in to comment.