From 872eae8dc7c03953ca650746e5e6eaabbec112b7 Mon Sep 17 00:00:00 2001 From: StarWishsama Date: Mon, 27 May 2024 20:55:26 +0800 Subject: [PATCH] chore: thanks but no --- .git-hooks/commit-msg | 20 -------------------- .github/workflows/dev-ci.yml | 4 ---- pom.xml | 1 - 3 files changed, 25 deletions(-) delete mode 100644 .git-hooks/commit-msg diff --git a/.git-hooks/commit-msg b/.git-hooks/commit-msg deleted file mode 100644 index 9aa35923b3..0000000000 --- a/.git-hooks/commit-msg +++ /dev/null @@ -1,20 +0,0 @@ -#!/usr/bin/env bash - -INPUT_FILE=$1 - -START_LINE=$(head -n1 "$INPUT_FILE") - -PATTERN='^(feat(ure)?|fix|docs|style|refactor|ci|chore|perf|build|test|revert|trans)(\(.+\))?(!)?: .+$' - -if [ "${#START_LINE}" -gt "72" ]; then - echo -e "Message too long! Assert length <= 72." - exit -fi - -if ! [[ "$START_LINE" =~ $PATTERN ]]; then - echo -e "$START_LINE" - echo - echo -e "↑ Bad commit message, it does not meet the Conventional Commit standard." - echo -e "See more: https://www.conventionalcommits.org/en/v1.0.0/" - exit 1 -fi \ No newline at end of file diff --git a/.github/workflows/dev-ci.yml b/.github/workflows/dev-ci.yml index 23b35451f3..b902674614 100644 --- a/.github/workflows/dev-ci.yml +++ b/.github/workflows/dev-ci.yml @@ -24,10 +24,6 @@ jobs: java-package: jdk architecture: x64 cache: maven - - name: Commit message style check - run: | - chmod +x .git-hooks/commit-msg - ./commit-msg - name: Codestyle check run: mvn -B spotless:check --errors - name: Build Slimefun diff --git a/pom.xml b/pom.xml index bff339ba85..5ce886f565 100644 --- a/pom.xml +++ b/pom.xml @@ -201,7 +201,6 @@ .git-hooks/pre-commit - .git-hooks/commit-msg