Skip to content

Commit 084e94b

Browse files
committed
fix: Skip husky hooks in CI environments
Claude-Session: https://gist.github.com/clayroach/fca4c03c448964e50b94853d07cf6f59
1 parent 751f1f7 commit 084e94b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.husky/post-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/env bash
22

3+
# Skip in CI environments
4+
if [ -n "$CI" ]; then
5+
exit 0
6+
fi
7+
38
# Check if we have a gist URL from prepare-commit-msg
49
if [ ! -f /tmp/claude-session-gists-url ]; then
510
exit 0

.husky/prepare-commit-msg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
#!/usr/bin/env bash
22

3+
# Skip in CI environments
4+
if [ -n "$CI" ]; then
5+
exit 0
6+
fi
7+
38
COMMIT_MSG_FILE=$1
49
COMMIT_SOURCE=$2
510

0 commit comments

Comments
 (0)