소스 검색

HUE-8888 [ci] Allow rebase commit message in pull requests

The merge commit won't show up after the merge as it is disabled
in the repo options.
Romain 5 년 전
부모
커밋
aa45633e79
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      tools/githooks/commit-msg

+ 1 - 1
tools/githooks/commit-msg

@@ -2,7 +2,7 @@
 
 INPUT_FILE=$1
 START_LINE=${2:-`head -n1 $INPUT_FILE`}
-PATTERN="^(HUE\-[a-z0-9]+ \[.+\] .+)|(\[.+\] .+? \(#[a-z0-9]+\))"
+PATTERN="^(HUE\-[a-z0-9]+ \[.+\] .+)|(\[.+\] .+? \(#[a-z0-9]+\)|(Merge branch 'master' into master))"
 
 if ! [[ "$START_LINE" =~ $PATTERN ]]; then
   echo "'$START_LINE' is not a valid commit message, please see for examples:"