Skip to content
This repository was archived by the owner on Dec 28, 2024. It is now read-only.

Commit faa3b84

Browse files
committed
ci: update githooks to disable commiting if in CI
1 parent 8015a5e commit faa3b84

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.githooks/commit-msg

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

3+
# Skip in CI
4+
if [ -n "$CI" ]; then
5+
exit 0
6+
fi
7+
38
# Remove comments from commit message to not trigger [body-max-line-length]
49
message=$(sed '/^#/d' < "$1")
510

0 commit comments

Comments
 (0)