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 committed Nov 28, 2022
1 parent 3fb27b8 commit 2a4ffb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/verifyCommit.ts
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 2a4ffb7

Please sign in to comment.