feat(concom): fix tag generation ref: NOISSUE

This commit is contained in:
2024-11-30 20:05:52 +01:00
parent 81611c0dd1
commit a5b1854956
4 changed files with 106 additions and 15 deletions

View File

@@ -7,7 +7,7 @@ echo "Running commit message checks..."
# Get the commit message
commit="$(cat .git/COMMIT_EDITMSG)"
# Define the conventional commit regex
regex="^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(.+\))?(!?):\s(.+)\s((ref(s?):?\s?)[A-Z0-9]+\-[0-9]+)$"
regex="^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(.+\))?(!?):\s([a-zA-Z0-9-_!\&\.\%\"\'\(\)\=\w\s]+)\s?(,?\s?)((ref(s?):?\s?)(([A-Z0-9]+\-[0-9]+)|(NOISSUE)))$"
# Check if the commit message matches the conventional commit format