generated from Templates/Dotnet_Library
feat: test ref NOISSUE
This commit is contained in:
parent
3312faeaa5
commit
17b78ced78
@ -7,7 +7,7 @@ echo "Running commit message checks..."
|
|||||||
# Get the commit message
|
# Get the commit message
|
||||||
commit="$(cat .git/COMMIT_EDITMSG)"
|
commit="$(cat .git/COMMIT_EDITMSG)"
|
||||||
# Define the conventional commit regex
|
# Define the conventional commit regex
|
||||||
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)))$"
|
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))))|(release: .*)$"
|
||||||
|
|
||||||
|
|
||||||
# Check if the commit message matches the conventional commit format
|
# Check if the commit message matches the conventional commit format
|
||||||
@ -42,5 +42,7 @@ then
|
|||||||
echo "Put newline before extended commit body"
|
echo "Put newline before extended commit body"
|
||||||
echo "More details at $(underline "http://www.conventionalcommits.org")"
|
echo "More details at $(underline "http://www.conventionalcommits.org")"
|
||||||
echo
|
echo
|
||||||
|
echo "The commit message you attempted was: $commit"
|
||||||
|
echo
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
Loading…
x
Reference in New Issue
Block a user