Parcourir la source

build: add types as allowed commit type

Evan You il y a 8 ans
Parent
commit
08a18dd7b8
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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