Skip to content

Commit af29c56

Browse files
committed
chore: Update commit regex to allow optional exclamation marks
1 parent f041121 commit af29c56

File tree

3 files changed

+22
-1
lines changed

3 files changed

+22
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"execa": "^9.5.2",
5353
"fast-glob": "^3.3.2",
5454
"jest": "^29.7.0",
55+
"jest-canvas-mock": "^2.5.2",
5556
"jest-environment-jsdom": "^29.7.0",
5657
"lint-staged": "^15.2.11",
5758
"minimist": "^1.2.8",

pnpm-lock.yaml

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/verifyCommit.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const msgPath = path.resolve('.git/COMMIT_EDITMSG')
1515
const msg = readFileSync(msgPath, 'utf-8').trim()
1616

1717
const commitRE =
18-
/^(revert: )?(feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release)(\(.+\))?: .{1,50}/
18+
/^(revert: )?(feat!?|fix|docs|dx|style|refactor!?|perf|test|workflow|build|ci|chore|types|wip|release)(\(.+\))?: .{1,50}/
1919

2020
if (!commitRE.test(msg)) {
2121
console.log()

0 commit comments

Comments
 (0)