From 0844e195054b7b7259115fa80d3b8ac08ffb5835 Mon Sep 17 00:00:00 2001 From: congqixia Date: Wed, 6 Sep 2023 18:33:14 +0800 Subject: [PATCH] Fix mergify rules for unit test file changed under pkg folder (#26882) See #26865 for only unit test file changed removed due to exclude rule only apply to _test.go under internal/ Signed-off-by: Congqi Xia --- .github/mergify.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/mergify.yml b/.github/mergify.yml index ff4a56afef..d689727914 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -109,7 +109,7 @@ pull_request_rules: - 'status-success=Code Checker Amazonlinux 2023' - 'status-success=UT for Go (20.04)' - or: - - -files~=^(?!pkg\/..*test\.go).*$ + - -files~=^(?!pkg\/.*_test\.go).*$ - -files~=^(?!internal\/.*_test\.go).*$ actions: label: @@ -306,7 +306,7 @@ pull_request_rules: - base=sql_beta - base~=^2(\.\d+){2}$ - -title~=\[skip e2e\] - - files~=^(?!(internal\/.*_test\.go|.*\.md)).*$ + - files~=^(?!(.*_test\.go|.*\.md)).*$ - 'status-success!=cpu-e2e' actions: label: