Explorar o código

fix: made the regex match commitlint more closely

MikeWallaceDev %!s(int64=2) %!d(string=hai) anos
pai
achega
30db03f3df
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      .githooks/commit-msg

+ 1 - 1
.githooks/commit-msg

@@ -35,7 +35,7 @@ test "" = "$(grep '^Signed-off-by: ' "$1" |
 
 .githooks/gitlint \
 	 --msg-file=$1 \
-	 --subject-regex="^([bB]uild|[cC]hore|[cC]i|[dD]ocs|[fF]eat|[fF]eature|[fF]ix|[pP]erf|[rR]efactor|[rR]evert|[sS]tyle|[tT]est)(.*)?\s?:\s?.*" \
+	 --subject-regex="^(build|chore|ci|docs|feat|feature|fix|perf|refactor|revert|style|test)(.*)?:\s?.*" \
     --subject-maxlen=100 \
     --subject-minlen=10 \
     --body-regex=".*" \