summaryrefslogtreecommitdiff
path: root/utils/ci
diff options
context:
space:
mode:
authorchaesngmin <[email protected]>2021-09-29 22:44:35 -0700
committerGitHub <[email protected]>2021-09-30 07:44:35 +0200
commit346925fcdcc122702270ca678b5dd1e68820aa00 (patch)
tree2654e8f523060265331648fe5e8287c99383d462 /utils/ci
parent35d5615ecc2366ec5de4ce0fecd75fb426216ea0 (diff)
feat: add commitlint CI (#1459)
Co-authored-by: kylo252 <[email protected]>
Diffstat (limited to 'utils/ci')
-rw-r--r--utils/ci/run_commitlint.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/ci/run_commitlint.sh b/utils/ci/run_commitlint.sh
new file mode 100644
index 00000000..b752956d
--- /dev/null
+++ b/utils/ci/run_commitlint.sh
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+set -eo pipefail
+
+REPO_DIR="$(git rev-parse --show-toplevel)"
+HELP_URL="https://github.com/LunarVim/LunarVim/blob/rolling/CONTRIBUTING.md#commit-messages"
+CONFIG="$REPO_DIR/.github/workflows/commitlint.config.js"
+
+if ! npx commitlint --edit --verbose --help-url "$HELP_URL" --config "$CONFIG"; then
+ exit 1
+fi