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-06-04 10:26:53 +08:00
|
|
|
- -files~=^(?!tests).+
|
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
|
|
|
|
- -files~=^(?!tests20).+
|
|
|
|
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-06-15 17:52:28 +08:00
|
|
|
# ONLY for recovery2 branch
|
2021-05-31 15:24:38 +08:00
|
|
|
- name: Test passed for code changed
|
|
|
|
conditions:
|
2021-06-15 17:52:28 +08:00
|
|
|
- base=recovery2
|
2021-05-31 15:24:38 +08:00
|
|
|
- "status-success=Code Checker AMD64 Ubuntu 18.04"
|
|
|
|
- "status-success=Build and test AMD64 Ubuntu 18.04"
|
2021-06-16 17:04:55 +08:00
|
|
|
- "status-success=continuous-integration/jenkins/pr-merge"
|
2021-05-31 15:24:38 +08:00
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
add:
|
|
|
|
- ci-passed
|