fix: commit verify error

This commit is contained in:
alex8088 2022-05-26 23:04:36 +08:00
parent ad3060d79d
commit 62b21ee994

View file

@ -12,7 +12,7 @@ const commitRE =
if (!commitRE.test(msg)) { if (!commitRE.test(msg)) {
console.log() console.log()
console.error( console.error(
` ${colors.bgRed.white(' ERROR ')} ${colors.red(`invalid commit message format.`)}\n\n` + ` ${colors.bgRed(colors.white(' ERROR '))} ${colors.red(`invalid commit message format.`)}\n\n` +
colors.red(` Proper commit message format is required for automated changelog generation. Examples:\n\n`) + colors.red(` Proper commit message format is required for automated changelog generation. Examples:\n\n`) +
` ${colors.green(`feat: add 'comments' option`)}\n` + ` ${colors.green(`feat: add 'comments' option`)}\n` +
` ${colors.green(`fix: handle events on blur (close #28)`)}\n\n` + ` ${colors.green(`fix: handle events on blur (close #28)`)}\n\n` +