From 17b78ced782b12408636c6109908cf2e91062843 Mon Sep 17 00:00:00 2001 From: Simon Diesenreiter Date: Sat, 30 Nov 2024 20:13:05 +0100 Subject: [PATCH] feat: test ref NOISSUE --- .gitea/conventional_commits/commit-msg | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/conventional_commits/commit-msg b/.gitea/conventional_commits/commit-msg index b587009..4839f8e 100755 --- a/.gitea/conventional_commits/commit-msg +++ b/.gitea/conventional_commits/commit-msg @@ -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([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 @@ -42,5 +42,7 @@ then echo "Put newline before extended commit body" echo "More details at $(underline "http://www.conventionalcommits.org")" echo + echo "The commit message you attempted was: $commit" + echo exit 1 fi \ No newline at end of file