run_commitlint.sh 331 B

12345678910
  1. #!/usr/bin/env bash
  2. set -eo pipefail
  3. REPO_DIR="$(git rev-parse --show-toplevel)"
  4. HELP_URL="https://github.com/LunarVim/LunarVim/blob/rolling/CONTRIBUTING.md#commit-messages"
  5. CONFIG="$REPO_DIR/.github/workflows/commitlint.config.js"
  6. if ! npx commitlint --edit --verbose --help-url "$HELP_URL" --config "$CONFIG"; then
  7. exit 1
  8. fi