Skip to content

Commit 6bf294c

Browse files
committed
chore: add commitlint.sh back
1 parent e1ee84f commit 6bf294c

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.lefthook/commitlint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/bash
2+
3+
if [[ -z "$CI" ]]; then
4+
npx commitlint --edit $GIT_PARAMS
5+
fi

lefthook.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ pre-push:
55
run: npm test
66

77
commit-msg:
8-
commands:
9-
commitlint:
10-
run: npx commitlint --edit $GIT_PARAMS
11-
skip: CI == 'true'
8+
scripts:
9+
"commitlint.sh":
10+
runner: bash

0 commit comments

Comments
 (0)