Skip to content

Commit

Permalink
ci: verify commit msg
Browse files Browse the repository at this point in the history
  • Loading branch information
shaodahong committed Jun 15, 2020
1 parent a9c010a commit 11795fd
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 @@ -3,7 +3,7 @@ const chalk = require('chalk')
const msgPath = process.env.HUSKY_GIT_PARAMS
const msg = require('fs').readFileSync(msgPath, 'utf-8').trim()

const commitRE = /^(revert: )?(feat|fix|polish|docs|style|refactor|perf|test|workflow|ci|chore|types|build)(\(.+\))?: .{1,50}/
const commitRE = /^(revert: )?(feat|fix|polish|docs|style|refactor|perf|test|workflow|ci|chore|types|build|v)(\(.+\))?: .{1,50}/

if (!commitRE.test(msg)) {
console.log()
Expand Down

0 comments on commit 11795fd

Please sign in to comment.