From e92a559e9519e896d9a848653c2a99da085df761 Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Mon, 7 Apr 2025 19:06:28 +0200 Subject: [PATCH] test(update): testing --- hooks/pre-recieve.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hooks/pre-recieve.sh b/hooks/pre-recieve.sh index 26b15ce..728155f 100644 --- a/hooks/pre-recieve.sh +++ b/hooks/pre-recieve.sh @@ -1,9 +1,8 @@ #!/bin/bash -# Semantic commit pattern: -# feat|fix|docs|style|refactor|test|perf|build|ci|chore|revert(optional scope): message -# Allow dots (.), uppercase letters, and other common filename characters in scope -PATTERN='^(feat|fix|docs|style|refactor|test|perf|build|ci|chore|revert)(\([a-zA-Z0-9\-\.\_]+\))?: .{1,}$' +# Semantic commit pattern - fixed to properly handle hyphens in scope +# Moved the hyphen to the end of the character class to avoid interpretation issues +PATTERN='^(feat|fix|docs|style|refactor|test|perf|build|ci|chore|revert)(\([a-zA-Z0-9\._-]+\))?: .{1,}$' # Pattern for merge commits from pull requests - simplified to catch all formats PR_MERGE_PATTERN='^Merge pull request'