Skip to content

Commit

Permalink
chore: allow breaking commit message (#11102)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored Nov 28, 2022
1 parent b3e2b73 commit e293bef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/verifyCommit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const msg = readFileSync(msgPath, 'utf-8').trim()

const releaseRE = /^v\d/
const commitRE =
/^(?:revert: )?(?:feat|fix|docs|dx|refactor|perf|test|workflow|build|ci|chore|types|wip|release|deps)(?:\(.+\))?: .{1,50}/
/^(?:revert: )?(?:feat|fix|docs|dx|refactor|perf|test|workflow|build|ci|chore|types|wip|release|deps)(?:\(.+\))?!?: .{1,50}/

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

0 comments on commit e293bef

Please # to comment.