Skip to content

Commit

Permalink
ci: update githooks to disable commiting if in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
andreidmt committed Feb 6, 2023
1 parent 8015a5e commit faa3b84
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .githooks/commit-msg
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/sh -e

# Skip in CI
if [ -n "$CI" ]; then
exit 0
fi

# Remove comments from commit message to not trigger [body-max-line-length]
message=$(sed '/^#/d' < "$1")

Expand Down

0 comments on commit faa3b84

Please sign in to comment.