Просмотр исходного кода

build: add types as allowed commit type

Evan You 8 лет назад
Родитель
Сommit
08a18dd7b8
1 измененных файлов с 1 добавлено и 1 удалено
  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