2021-04-22 10:49:02 +08:00
|
|
|
pull_request_rules:
|
2021-11-29 16:17:18 +08:00
|
|
|
- name: Add needs-dco label when DCO check failed
|
|
|
|
conditions:
|
2022-03-04 14:37:56 +08:00
|
|
|
- or:
|
|
|
|
- base=master
|
|
|
|
- base~=^2(\.\d+){2}$
|
2021-11-29 16:17:18 +08:00
|
|
|
- -status-success=DCO
|
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
remove:
|
|
|
|
- dco-passed
|
|
|
|
add:
|
|
|
|
- needs-dco
|
|
|
|
|
|
|
|
- name: Add dco-passed label when DCO check passed
|
|
|
|
conditions:
|
2022-03-04 14:37:56 +08:00
|
|
|
- or:
|
|
|
|
- base=master
|
|
|
|
- base~=^2(\.\d+){2}$
|
2021-11-29 16:17:18 +08:00
|
|
|
- status-success=DCO
|
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
remove:
|
|
|
|
- needs-dco
|
|
|
|
add:
|
|
|
|
- dco-passed
|
|
|
|
|
2021-05-31 14:08:30 +08:00
|
|
|
- name: Test passed for code changed
|
2021-04-22 10:49:02 +08:00
|
|
|
conditions:
|
2022-03-09 10:15:58 +08:00
|
|
|
- or:
|
|
|
|
- base=master
|
|
|
|
- base~=^2(\.\d+){2}$
|
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"
|
2022-03-03 16:07:56 +08:00
|
|
|
- "status-success=Code Checker MacOS 11"
|
2022-03-31 15:19:28 +08:00
|
|
|
- "status-success=Code Checker CentOS 7"
|
2021-04-29 10:19:41 +08:00
|
|
|
- "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:
|
2022-03-04 14:37:56 +08:00
|
|
|
- or:
|
|
|
|
- base=master
|
|
|
|
- base~=^2(\.\d+){2}$
|
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-11-29 21:19:45 +08:00
|
|
|
|
2022-02-24 16:53:53 +08:00
|
|
|
- name: Test passed for docs changed only
|
|
|
|
conditions:
|
2022-03-04 14:37:56 +08:00
|
|
|
- or:
|
|
|
|
- base=master
|
|
|
|
- base~=^2(\.\d+){2}$
|
2022-02-24 16:53:53 +08:00
|
|
|
- -files~=^(?!.*\.(md)).*$
|
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
add:
|
|
|
|
- ci-passed
|
|
|
|
|
|
|
|
|
2021-12-29 15:35:21 +08:00
|
|
|
- name: Test passed for non go or c++ code changed
|
2021-11-29 21:19:45 +08:00
|
|
|
conditions:
|
2022-03-04 14:37:56 +08:00
|
|
|
- or:
|
|
|
|
- base=master
|
|
|
|
- base~=^2(\.\d+){2}$
|
2022-03-29 17:05:27 +08:00
|
|
|
- -files~=^(?=.*((\.(go|h|cpp)|CMakeLists.txt))).*$
|
2021-11-29 21:19:45 +08:00
|
|
|
- "status-success=continuous-integration/jenkins/pr-merge"
|
|
|
|
actions:
|
|
|
|
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:
|
2022-03-04 14:37:56 +08:00
|
|
|
- or:
|
|
|
|
- base=master
|
|
|
|
- base~=^2(\.\d+){2}$
|
2021-09-08 16:07:59 +08:00
|
|
|
- "status-success=Code Checker AMD64 Ubuntu 18.04"
|
|
|
|
- "status-success=Build and test AMD64 Ubuntu 18.04"
|
2022-03-03 16:07:56 +08:00
|
|
|
- "status-success=Code Checker MacOS 11"
|
2022-03-31 15:19:28 +08:00
|
|
|
- "status-success=Code Checker CentOS 7"
|
2021-09-08 16:07:59 +08:00
|
|
|
- -files~=^(?!internal\/.*_test\.go).*$
|
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
add:
|
|
|
|
- ci-passed
|
|
|
|
|
2021-05-31 15:13:32 +08:00
|
|
|
- name: Test passed for mergify changed
|
|
|
|
conditions:
|
2022-03-04 14:37:56 +08:00
|
|
|
- or:
|
|
|
|
- base=master
|
|
|
|
- base~=^2(\.\d+){2}$
|
2021-05-31 15:13:32 +08:00
|
|
|
- -files~=^(?!\.github\/mergify\.yml).*$
|
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
add:
|
|
|
|
- ci-passed
|
|
|
|
|
2021-12-17 14:25:16 +08:00
|
|
|
- name: Test passed for title skip e2e
|
2021-07-28 16:51:22 +08:00
|
|
|
conditions:
|
2022-03-04 14:37:56 +08:00
|
|
|
- or:
|
|
|
|
- base=master
|
|
|
|
- base~=^2(\.\d+){2}$
|
2021-12-17 14:25:16 +08:00
|
|
|
- title~=\[skip e2e\]
|
2021-09-23 15:31:55 +08:00
|
|
|
- label=kind/improvement
|
2022-03-29 17:05:27 +08:00
|
|
|
- -files~=^(?=.*((\.(go|h|cpp)|CMakeLists.txt))).*$
|
2021-07-28 16:51:22 +08:00
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
add:
|
|
|
|
- ci-passed
|
|
|
|
|
2021-05-31 15:13:32 +08:00
|
|
|
|
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:
|
2022-03-04 14:37:56 +08:00
|
|
|
- or:
|
|
|
|
- base=master
|
|
|
|
- base~=^2(\.\d+){2}$
|
2022-03-28 22:14:18 +08:00
|
|
|
- and:
|
|
|
|
- -body~=\#[0-9]{1,6}(\s+|$)
|
|
|
|
- -body~=https://github.com/milvus-io/milvus/issues/[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: |
|
2022-04-01 21:33:29 +08:00
|
|
|
@{{author}} Please associate the related issue to the body of your Pull Request. (eg. “issue: #<xyz>”)
|
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:
|
2022-03-04 14:37:56 +08:00
|
|
|
- or:
|
|
|
|
- base=master
|
|
|
|
- base~=^2(\.\d+){2}$
|
2022-03-28 21:25:31 +08:00
|
|
|
- or:
|
|
|
|
- body~=\#[0-9]{1,6}(\s+|$)
|
|
|
|
- body~=https://github.com/milvus-io/milvus/issues/[0-9]{1,6}(\s+|$)
|
2021-09-08 10:07:58 +08:00
|
|
|
- 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:
|
2022-03-04 14:37:56 +08:00
|
|
|
- or:
|
|
|
|
- base=master
|
|
|
|
- base~=^2(\.\d+){2}$
|
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
|
|
|
|
|
2021-12-17 12:05:12 +08:00
|
|
|
- name: Test passed for skip e2e
|
|
|
|
conditions:
|
2022-03-04 14:37:56 +08:00
|
|
|
- or:
|
|
|
|
- base=master
|
|
|
|
- base~=^2(\.\d+){2}$
|
2021-12-17 12:05:12 +08:00
|
|
|
- title~=\[skip e2e\]
|
|
|
|
- "status-success=Code Checker AMD64 Ubuntu 18.04"
|
|
|
|
- "status-success=Build and test AMD64 Ubuntu 18.04"
|
2022-03-03 16:07:56 +08:00
|
|
|
- "status-success=Code Checker MacOS 11"
|
2022-03-31 15:19:28 +08:00
|
|
|
- "status-success=Code Checker CentOS 7"
|
2022-03-29 17:05:27 +08:00
|
|
|
- files~=^(?=.*((\.(go|h|cpp)|CMakeLists.txt))).*$
|
2021-12-17 12:05:12 +08:00
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
add:
|
2021-12-17 15:25:12 +08:00
|
|
|
- ci-passed
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-12-22 14:41:06 +08:00
|
|
|
- name: Remove ci-passed label when status for code checker or ut is not success
|
2021-12-17 15:25:12 +08:00
|
|
|
conditions:
|
2022-06-30 10:04:18 +08:00
|
|
|
- label!=manual-pass
|
2022-03-04 14:37:56 +08:00
|
|
|
- or:
|
|
|
|
- base=master
|
|
|
|
- base~=^2(\.\d+){2}$
|
2022-03-29 17:05:27 +08:00
|
|
|
- files~=^(?=.*((\.(go|h|cpp)|CMakeLists.txt))).*$
|
2021-12-17 15:25:12 +08:00
|
|
|
- or:
|
|
|
|
- "status-success!=Code Checker AMD64 Ubuntu 18.04"
|
2022-03-03 16:07:56 +08:00
|
|
|
- "status-success!=Build and test AMD64 Ubuntu 18.04"
|
|
|
|
- "status-success!=Code Checker MacOS 11"
|
2022-03-31 15:19:28 +08:00
|
|
|
- "status-success!=Code Checker CentOS 7"
|
2021-12-17 16:29:35 +08:00
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
remove:
|
|
|
|
- ci-passed
|
|
|
|
|
2021-12-22 14:41:06 +08:00
|
|
|
- name: Remove ci-passed label when status for jenkins job is not success
|
2021-12-17 16:29:35 +08:00
|
|
|
conditions:
|
2022-06-30 10:04:18 +08:00
|
|
|
- label!=manual-pass
|
2022-03-04 14:37:56 +08:00
|
|
|
- or:
|
|
|
|
- base=master
|
|
|
|
- base~=^2(\.\d+){2}$
|
2021-12-17 16:29:35 +08:00
|
|
|
- -title~=\[skip e2e\]
|
2022-02-24 16:53:53 +08:00
|
|
|
- files~=^(?!(internal\/.*_test\.go|.*\.md)).*$
|
2021-12-17 16:29:35 +08:00
|
|
|
- "status-success!=continuous-integration/jenkins/pr-merge"
|
2021-12-17 15:25:12 +08:00
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
remove:
|
2021-12-21 10:56:53 +08:00
|
|
|
- ci-passed
|
2021-12-24 09:51:13 +08:00
|
|
|
|
|
|
|
|
|
|
|
- name: Add comment when jenkins job failed
|
|
|
|
conditions:
|
2022-03-04 14:37:56 +08:00
|
|
|
- or:
|
|
|
|
- base=master
|
|
|
|
- base~=^2(\.\d+){2}$
|
2021-12-24 09:51:13 +08:00
|
|
|
- "check-failure=continuous-integration/jenkins/pr-merge"
|
|
|
|
actions:
|
|
|
|
comment:
|
|
|
|
message: |
|
|
|
|
@{{author}} E2e jenkins job failed, comment `/run-checks` can trigger the job again.
|
|
|
|
|
|
|
|
- name: Add comment when code checker or ut failed
|
|
|
|
conditions:
|
2022-03-04 14:37:56 +08:00
|
|
|
- or:
|
|
|
|
- base=master
|
|
|
|
- base~=^2(\.\d+){2}$
|
2021-12-24 09:51:13 +08:00
|
|
|
- or:
|
|
|
|
- "check-failure=Code Checker AMD64 Ubuntu 18.04"
|
|
|
|
- "check-failure=Build and test AMD64 Ubuntu 18.04"
|
|
|
|
actions:
|
|
|
|
comment:
|
|
|
|
message: |
|
2022-02-16 16:53:50 +08:00
|
|
|
@{{author}} ut workflow job failed, comment `rerun ut` can trigger the job again.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Add `needs-rebase` label when more than one commit in pr
|
|
|
|
conditions:
|
2022-03-04 14:37:56 +08:00
|
|
|
- or:
|
|
|
|
- base=master
|
|
|
|
- base~=^2(\.\d+){2}$
|
2022-02-16 16:53:50 +08:00
|
|
|
- "#commits>1"
|
|
|
|
actions:
|
|
|
|
comment:
|
|
|
|
message: |
|
|
|
|
@{{author}}, please be sure the pr should only have one commit, check https://github.com/milvus-io/milvus/blob/master/CODE_REVIEW.md for more details.
|
|
|
|
label:
|
|
|
|
add:
|
|
|
|
- needs-rebase
|
|
|
|
|
|
|
|
- name: Remove `needs-rebase` label when only one commit in pr
|
|
|
|
conditions:
|
2022-03-04 14:37:56 +08:00
|
|
|
- or:
|
|
|
|
- base=master
|
|
|
|
- base~=^2(\.\d+){2}$
|
2022-02-16 16:53:50 +08:00
|
|
|
- "#commits=1"
|
|
|
|
actions:
|
|
|
|
label:
|
|
|
|
remove:
|
|
|
|
- needs-rebase
|