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-08-19 15:50:12 +08:00
|
|
|
- "status-success=codecov/patch"
|
2021-09-14 19:35:49 +08:00
|
|
|
- "status-success=codecov/project"
|
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-08-20 11:00:56 +08:00
|
|
|
- -files~=^(?!tests\/python_client).+
|
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-09-08 16:07:59 +08:00
|
|
|
- name: Test passed for go unittest code changed
|
|
|
|
conditions:
|
|
|
|
- base=master
|
|
|
|
- "status-success=Code Checker AMD64 Ubuntu 18.04"
|
|
|
|
- "status-success=Build and test AMD64 Ubuntu 18.04"
|
|
|
|
- -files~=^(?!internal\/.*_test\.go).*$
|
|
|
|
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-07-19 16:13:10 +08:00
|
|
|
- -files~=\S+\.(?!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-07-28 16:51:22 +08:00
|
|
|
- name: Test passed for title skip ci
|
|
|
|
conditions:
|
|
|
|
- base=master
|
2021-07-28 17:19:21 +08:00
|
|
|
- title~=\[skip ci\]
|
2021-09-23 09:37:55 +08:00
|
|
|
- -files~=^(?!internal\/).*$
|
2021-07-28 16:51:22 +08:00
|
|
|
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-09-10 17:28:21 +08:00
|
|
|
- -title~=\[skip ci\]
|
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-09-10 17:28:21 +08:00
|
|
|
- -title~=\[skip ci\]
|
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
|
2021-09-10 17:28:21 +08:00
|
|
|
- -title~=\[skip ci\]
|
2021-05-31 15:13:32 +08:00
|
|
|
- "check-pending=continuous-integration/jenkins/pr-merge"
|
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
remove:
|
|
|
|
- ci-passed
|
|
|
|
|
2021-09-08 10:07:58 +08:00
|
|
|
- name: Blocking PR if missing a related issue or PR doesn't have kind/improvement label
|
2021-07-14 21:29:55 +08:00
|
|
|
conditions:
|
|
|
|
- base=master
|
2021-07-16 11:41:55 +08:00
|
|
|
- -body~=\#[0-9]{1,6}(\s+|$)
|
2021-09-08 10:07:58 +08:00
|
|
|
- -label=kind/improvement
|
2021-07-15 17:26:26 +08:00
|
|
|
- -title~=\[automated\]
|
2021-07-14 21:29:55 +08:00
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
add:
|
|
|
|
- do-not-merge/missing-related-issue
|
2021-07-15 12:01:55 +08:00
|
|
|
comment:
|
|
|
|
message: |
|
2021-07-16 11:41:55 +08:00
|
|
|
@{{author}} Please associate the related issue to the body of your Pull Request. (eg. “issue: #6534”)
|
2021-07-15 12:01:55 +08:00
|
|
|
|
2021-07-14 21:29:55 +08:00
|
|
|
|
|
|
|
- name: Dismiss block label if related issue be added into PR
|
|
|
|
conditions:
|
2021-09-08 10:07:58 +08:00
|
|
|
- or:
|
|
|
|
- and:
|
|
|
|
- base=master
|
|
|
|
- body~=\#[0-9]{1,6}(\s+|$)
|
|
|
|
- and:
|
|
|
|
- base=master
|
|
|
|
- label=kind/improvement
|
2021-07-16 11:41:55 +08:00
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
remove:
|
|
|
|
- do-not-merge/missing-related-issue
|
|
|
|
|
|
|
|
- name: Dismiss block label if automated create PR
|
|
|
|
conditions:
|
|
|
|
- base=master
|
2021-07-15 17:26:26 +08:00
|
|
|
- title~=\[automated\]
|
2021-07-14 21:29:55 +08:00
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
remove:
|
|
|
|
- do-not-merge/missing-related-issue
|
|
|
|
|