Skip to content

Commit 90022aa

Browse files
committed
chore: fix pre-commit hooks and don't run husky in CI
1 parent 693ca41 commit 90022aa

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ env:
1515
REGISTRY: ghcr.io
1616
IMAGE_NAME: ${{ github.repository }}
1717
OCULAR_GENESIS_HOST: /api
18+
HUSKY: 0
1819

1920
jobs:
2021
build:

.husky/commit-msg

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
message="$(cat $1)"
2+
regex="^(fix|feat|chore|docs): [a-z].*$"
3+
4+
if ! [[ $message =~ $regex ]]; then
5+
echo "Commit message does not follow Conventional Commits format: <type>: <lowercase message>"
6+
echo "Allowed types: fix, feat, chore, docs"
7+
echo "Got message: '$message'"
8+
exit 1
9+
fi
10+

.husky/pre-commit

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)