Skip to content

Commit 2c4c5c9

Browse files
committed
chore: fix verify commit scripts
1 parent 598ddec commit 2c4c5c9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/verifyCommit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ if (!match) {
6262
process.exit(1)
6363
}
6464

65-
console.log(match, types, scopes)
66-
6765
if (!types.includes(match.groups?.type ?? '')) {
6866
console.error(
6967
`${picocolors.white(picocolors.bgRed(' ERROR '))} ${picocolors.red(
@@ -80,4 +78,6 @@ if (match.groups?.scope && !scopes.includes(match.groups.scope)) {
8078
`invalid commit message scope: "${match.groups.scope}".`,
8179
)}`,
8280
)
81+
// oxlint-disable-next-line unicorn/no-process-exit
82+
process.exit(1)
8383
}

0 commit comments

Comments
 (0)