From 034b7e8273e88d44573d604501cffd8f275af1bf Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Mon, 20 May 2024 18:36:06 +0200 Subject: [PATCH] Bypass check for version commit --- git_automation/check_commit_msg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/git_automation/check_commit_msg b/git_automation/check_commit_msg index 3318342..0cfbe79 100755 --- a/git_automation/check_commit_msg +++ b/git_automation/check_commit_msg @@ -13,6 +13,10 @@ if echo "$commitTitle" | grep -qE "Merge branch"; then exit 0 fi +if ! echo "$commitTitle" | grep "Automatically generated "; then + exit 0 +fi + # check semantic versioning scheme if ! echo "$commitTitle" | grep -qE '^(feat|fix|docs|style|refactor|perf|test|chore|build|ci|revert)(\([a-z0-9\s\-\_\,]+\))?!?:\s\w'; then echo "Your commit message did not follow semantic versioning: $commitTitle"