Skip to content

Commit

Permalink
fix(cli/commitlint): add !for break change
Browse files Browse the repository at this point in the history
  • Loading branch information
BeADre committed Sep 18, 2022
1 parent 6c5eccf commit 86ec583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/varlet-cli/src/commands/commitLint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function commitLint(gitParams: string) {
const message = require('fs').readFileSync(gitParams, 'utf-8').trim()

const COMMIT_MESSAGE_RE =
/^(revert|fix|feat|docs|perf|test|types|style|build|chore|release|refactor)(\(.+\))?: (.|\n)+/
/^(revert|fix|feat|docs|perf|test|types|style|build|chore|release|refactor)(\(.+\))?!?: (.|\n)+/

if (!isVersion(message) && !COMMIT_MESSAGE_RE.test(message)) {
logger.error(`Commit message invalid`)
Expand Down

0 comments on commit 86ec583

Please sign in to comment.