From ec14db0c10b26b7d390be7cf0965e93d6fbed339 Mon Sep 17 00:00:00 2001 From: Rhys Parry Date: Sun, 6 Oct 2024 09:04:11 +1000 Subject: [PATCH] chore: enable commitlint --- .commitlint/hooks/commit-msg | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 .commitlint/hooks/commit-msg diff --git a/.commitlint/hooks/commit-msg b/.commitlint/hooks/commit-msg new file mode 100755 index 0000000..afeb099 --- /dev/null +++ b/.commitlint/hooks/commit-msg @@ -0,0 +1,12 @@ +#!/bin/sh + +if ! type commitlint >/dev/null 2>/dev/null; then + echo "" + echo "commitlint could not be found" + echo "try again after installing commitlint or add commitlint to PATH" + echo "" + exit 2; +fi + +commitlint lint --message $1 +