Explorar o código

build: add types as allowed commit type

Evan You %!s(int64=8) %!d(string=hai) anos
pai
achega
08a18dd7b8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      build/git-hooks/commit-msg

+ 1 - 1
build/git-hooks/commit-msg

@@ -1,7 +1,7 @@
 #!/usr/bin/env bash
 
 # Validate commit log
-commit_regex='^Merge.+|(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\(.+\))?: .{1,50}'
+commit_regex='^Merge.+|(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert|types)(\(.+\))?: .{1,50}'
 
 if ! grep -iqE "$commit_regex" "$1"; then
     echo