Skip to content

Commit 90b108f

Browse files
committed
chore(hooks): remove duplicate skip checks from commit-msg and clean imports
1 parent 7ac0e6f commit 90b108f

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

booster/.husky/commit-msg.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515
import { fs } from 'zx'
1616
import validateBranchNameConfig from '../validate-branch-name.config.cjs'
17-
import { getCurrentBranch, GitHook, hasNodeBin, isSkipped, log, runHook, runTool, runWithRunner, shouldSkipDuringMerge } from './shared/index.ts'
17+
import { getCurrentBranch, GitHook, log, runHook, runTool, runWithRunner } from './shared/index.ts'
1818

1919
/**
2020
* Branch validation configuration interface
@@ -216,18 +216,6 @@ await runHook(GitHook.CommitMsg, async () => {
216216
return false
217217
}
218218

219-
// Check if we should skip the entire hook
220-
if (isSkipped('commitmsg')) {
221-
log.info('Skipping commit-msg validation (SKIP_COMMITMSG environment variable set)')
222-
return true
223-
}
224-
225-
// Check if we should skip all checks (during merge)
226-
if (await shouldSkipDuringMerge()) {
227-
log.info('Skipping commit-msg checks during merge')
228-
return true
229-
}
230-
231219
// Get current branch for validation
232220
const branchName = await getCurrentBranch()
233221
log.info(`Current branch: ${branchName}`)

0 commit comments

Comments
 (0)