From a5845c561faf6435b6c3f409809a58b2559c204f Mon Sep 17 00:00:00 2001 From: Congqi Xia Date: Wed, 2 Aug 2023 14:32:20 +0800 Subject: [PATCH] Add pass rule for example code change Signed-off-by: Congqi Xia --- .github/mergify.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/mergify.yml b/.github/mergify.yml index b1ea1449..715dc4aa 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -71,6 +71,18 @@ pull_request_rules: - ci-passed - "kind\/workflow" + - name: Test passed for example code changed + conditions: + - or: + - base=master + - base=v2.2.x + - -files~=^(?!example\/).+ + - "status-success=lint" + actions: + label: + add: + - ci-passed + - name: Remove ci-passed when some test failed conditions: - or: