Bypass check for version commit

This commit is contained in:
Guilhem Lavaux 2024-05-20 18:36:06 +02:00
parent 0bc782db2a
commit 034b7e8273

View File

@ -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"