Skip to content

Commit

Permalink
Update mergify rules branch to regexp (#642)
Browse files Browse the repository at this point in the history
Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia authored Dec 29, 2023
1 parent ebceb7f commit 1f1dc84
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pull_request_rules:
conditions:
- or:
- base=master
- base=v2.2.x
- base~=^v2(\.\d+).x$
- "status-success=Unittest AMD64 Ubuntu 18.04"
- "status-success=lint"
- "status-success=Run Ci Test (standalone)"
Expand All @@ -15,8 +15,9 @@ pull_request_rules:

- name: Test passed for code changed for branch
conditions:
- -base=master
- -base=v2.2.x
- or:
- base=master
- base~=^v2(\.\d+).x$
- "status-success=Unittest AMD64 Ubuntu 18.04"
- "status-success=lint"
actions:
Expand All @@ -28,7 +29,7 @@ pull_request_rules:
conditions:
- or:
- base=master
- base=v2.2.x
- base~=^v2(\.\d+).x$
- -files~=^(?!test\/).+
- "status-success=lint"
- "status-success=Run Ci Test (standalone)"
Expand Down Expand Up @@ -63,7 +64,7 @@ pull_request_rules:
conditions:
- or:
- base=master
- base=v2.2.x
- base~=^v2(\.\d+).x$
- -files~=^(?!\.github\/).+
actions:
label:
Expand All @@ -75,7 +76,7 @@ pull_request_rules:
conditions:
- or:
- base=master
- base=v2.2.x
- base~=^v2(\.\d+).x$
- -files~=^(?!examples\/).+
- "status-success=lint"
actions:
Expand All @@ -87,7 +88,7 @@ pull_request_rules:
conditions:
- or:
- base=master
- base=v2.2.x
- base~=^v2(\.\d+).x$
- or:
- "check-failure=Unittest AMD64 Ubuntu 18.04"
- "check-failure=lint"
Expand All @@ -98,8 +99,9 @@ pull_request_rules:

- name: Remove ci-passed when some test failed for branch
conditions:
- -base=master
- -base=v2.2.x
- or:
- base=master
- base~=^v2(\.\d+).x$
- or:
- "check-failure=Unittest AMD64 Ubuntu 18.04"
- "check-failure=lint"
Expand Down

0 comments on commit 1f1dc84

Please sign in to comment.