2021-04-22 10:49:02 +08:00
|
|
|
pull_request_rules:
|
2021-05-31 14:08:30 +08:00
|
|
|
- name: Test passed for code changed
|
2021-04-22 10:49:02 +08:00
|
|
|
conditions:
|
|
|
|
- base=master
|
2021-04-29 10:19:41 +08:00
|
|
|
- "status-success=Code Checker AMD64 Ubuntu 18.04"
|
|
|
|
- "status-success=Build and test AMD64 Ubuntu 18.04"
|
|
|
|
- "status-success=continuous-integration/jenkins/pr-merge"
|
2021-04-22 10:49:02 +08:00
|
|
|
actions:
|
2021-05-31 14:08:30 +08:00
|
|
|
label:
|
|
|
|
add:
|
|
|
|
- ci-passed
|
2021-04-22 10:49:02 +08:00
|
|
|
|
2021-05-31 14:08:30 +08:00
|
|
|
- name: Test passed for tests changed
|
2021-05-12 10:36:00 +08:00
|
|
|
conditions:
|
|
|
|
- base=master
|
2021-07-02 11:40:16 +08:00
|
|
|
- -files~=^(?!tests\/python_test).+
|
2021-05-12 10:36:00 +08:00
|
|
|
- "status-success=continuous-integration/jenkins/pr-merge"
|
|
|
|
actions:
|
2021-05-31 14:08:30 +08:00
|
|
|
label:
|
|
|
|
add:
|
|
|
|
- ci-passed
|
2021-05-12 10:36:00 +08:00
|
|
|
|
2021-06-04 10:26:53 +08:00
|
|
|
- name: Test passed for tests20 changed
|
|
|
|
conditions:
|
|
|
|
- base=master
|
2021-07-03 15:14:54 +08:00
|
|
|
- -files~=^(?!tests20\/python_client).+
|
|
|
|
- "status-success=continuous-integration/jenkins/pr-merge"
|
2021-06-04 10:26:53 +08:00
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
add:
|
|
|
|
- ci-passed
|
|
|
|
|
2021-05-31 14:08:30 +08:00
|
|
|
- name: Test passed for document changed
|
2021-04-23 10:54:53 +08:00
|
|
|
conditions:
|
|
|
|
- base=master
|
2021-05-15 13:02:31 +08:00
|
|
|
- -files~=^[^\.]+$
|
2021-04-29 10:19:41 +08:00
|
|
|
- -files~=\.(?!md|png)
|
2021-04-23 10:54:53 +08:00
|
|
|
actions:
|
2021-05-31 14:08:30 +08:00
|
|
|
label:
|
|
|
|
add:
|
|
|
|
- ci-passed
|
2021-04-24 10:24:18 +08:00
|
|
|
|
2021-05-31 15:13:32 +08:00
|
|
|
- name: Test passed for mergify changed
|
|
|
|
conditions:
|
|
|
|
- base=master
|
|
|
|
- -files~=^(?!\.github\/mergify\.yml).*$
|
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
add:
|
|
|
|
- ci-passed
|
|
|
|
|
2021-05-31 14:08:30 +08:00
|
|
|
- name: Remove ci-passed when code check failed
|
2021-04-24 10:24:18 +08:00
|
|
|
conditions:
|
|
|
|
- base=master
|
2021-05-31 14:08:30 +08:00
|
|
|
- "check-failure=Code Checker AMD64 Ubuntu 18.04"
|
2021-04-24 10:24:18 +08:00
|
|
|
actions:
|
2021-05-31 14:08:30 +08:00
|
|
|
label:
|
|
|
|
remove:
|
|
|
|
- ci-passed
|
2021-04-29 10:19:41 +08:00
|
|
|
|
2021-05-31 14:08:30 +08:00
|
|
|
- name: Remove ci-passed when unittest failed
|
2021-04-29 10:19:41 +08:00
|
|
|
conditions:
|
|
|
|
- base=master
|
2021-05-31 14:08:30 +08:00
|
|
|
- "check-failure=Build and test AMD64 Ubuntu 18.04"
|
2021-04-29 10:19:41 +08:00
|
|
|
actions:
|
2021-05-31 14:08:30 +08:00
|
|
|
label:
|
|
|
|
remove:
|
|
|
|
- ci-passed
|
2021-04-29 10:19:41 +08:00
|
|
|
|
2021-05-31 14:08:30 +08:00
|
|
|
- name: Remove ci-passed when ci failed
|
2021-04-29 10:19:41 +08:00
|
|
|
conditions:
|
|
|
|
- base=master
|
2021-05-31 14:08:30 +08:00
|
|
|
- "check-failure=continuous-integration/jenkins/pr-merge"
|
2021-04-29 10:19:41 +08:00
|
|
|
actions:
|
2021-05-31 14:08:30 +08:00
|
|
|
label:
|
|
|
|
remove:
|
|
|
|
- ci-passed
|
2021-04-24 10:24:18 +08:00
|
|
|
|
2021-05-31 15:13:32 +08:00
|
|
|
- name: Remove ci-passed when ci pending
|
|
|
|
conditions:
|
|
|
|
- base=master
|
|
|
|
- "check-pending=continuous-integration/jenkins/pr-merge"
|
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
remove:
|
|
|
|
- ci-passed
|
|
|
|
|
2021-07-14 21:29:55 +08:00
|
|
|
- name: Blocking PR if missing a related issue
|
|
|
|
conditions:
|
|
|
|
- base=master
|
|
|
|
- "-body~=issue: #[0-9]{1,4}"
|
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
add:
|
|
|
|
- do-not-merge/missing-related-issue
|
|
|
|
|
|
|
|
- name: Dismiss block label if related issue be added into PR
|
|
|
|
conditions:
|
|
|
|
- base=master
|
|
|
|
- "body~=issue: #[0-9]{1,4}"
|
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
remove:
|
|
|
|
- do-not-merge/missing-related-issue
|
|
|
|
|