2021-04-22 02:49:02 +00:00
pull_request_rules :
2021-11-29 08:17:18 +00:00
- name : Add needs-dco label when DCO check failed
conditions :
2022-03-04 06:37:56 +00:00
- or :
2023-08-18 10:32:19 +00:00
- base=master
- base=sql_beta
- base~=^2(\.\d+){2}$
2021-11-29 08:17:18 +00:00
- -status-success=DCO
actions :
label :
remove :
- dco-passed
add :
- needs-dco
2022-07-29 03:28:31 +00:00
comment :
message : |
@{{author}} Thanks for your contribution. Please submit with DCO, see the contributing guide https://github.com/milvus-io/milvus/blob/master/CONTRIBUTING.md#developer-certificate-of-origin-dco.
2021-11-29 08:17:18 +00:00
- name : Add dco-passed label when DCO check passed
conditions :
2022-03-04 06:37:56 +00:00
- or :
2023-08-18 10:32:19 +00:00
- base=master
- base~=^2(\.\d+){2}$
- base=sql_beta
2021-11-29 08:17:18 +00:00
- status-success=DCO
actions :
label :
remove :
- needs-dco
add :
- dco-passed
2022-09-01 06:36:57 +00:00
- name : Test passed for code changed-master
2021-04-22 02:49:02 +00:00
conditions :
2023-03-07 06:41:50 +00:00
- or :
2023-08-18 10:32:19 +00:00
- base=sql_beta
- base=master
- 'status-success=Build and test AMD64 Ubuntu 20.04'
- 'status-success=Code Checker AMD64 Ubuntu 20.04'
- 'status-success=Code Checker MacOS 12'
- 'status-success=Code Checker Amazonlinux 2023'
- 'status-success=cpu-e2e'
- 'status-success=codecov/patch'
- 'status-success=codecov/project'
2022-09-01 06:36:57 +00:00
actions :
label :
add :
- ci-passed
- name : Test passed for code changed -2.*.*
conditions :
- base~=^2(\.\d+){2}$
2023-08-18 10:32:19 +00:00
- 'status-success=Code Checker AMD64 Ubuntu 20.04'
- 'status-success=Build and test AMD64 Ubuntu 20.04'
- 'status-success=Code Checker MacOS 12'
- 'status-success=Code Checker CentOS 7'
- 'status-success=cpu-e2e'
- 'status-success=codecov/patch'
- 'status-success=codecov/project'
2021-04-22 02:49:02 +00:00
actions :
2021-05-31 06:08:30 +00:00
label :
add :
- ci-passed
- name : Test passed for tests changed
2021-05-12 02:36:00 +00:00
conditions :
2022-03-04 06:37:56 +00:00
- or :
2023-08-18 10:32:19 +00:00
- base=master
- base=sql_beta
- base~=^2(\.\d+){2}$
2021-08-20 03:00:56 +00:00
- -files~=^(?!tests\/python_client).+
2023-08-18 10:32:19 +00:00
- 'status-success=cpu-e2e'
2021-05-12 02:36:00 +00:00
actions :
2021-05-31 06:08:30 +00:00
label :
add :
- ci-passed
2023-08-18 10:32:19 +00:00
2022-02-24 08:53:53 +00:00
- name : Test passed for docs changed only
conditions :
2022-03-04 06:37:56 +00:00
- or :
2023-08-18 10:32:19 +00:00
- base=master
- base=sql_beta
- base~=^2(\.\d+){2}$
- -files~=^(?!.*\.(md)).*$
2022-02-24 08:53:53 +00:00
actions :
label :
add :
- ci-passed
2021-12-29 07:35:21 +00:00
- name : Test passed for non go or c++ code changed
2021-11-29 13:19:45 +00:00
conditions :
2022-03-04 06:37:56 +00:00
- or :
2023-08-18 10:32:19 +00:00
- base=master
- base=sql_beta
- base~=^2(\.\d+){2}$
2022-12-13 03:27:21 +00:00
- -files~=^(?=.*((\.(go|h|cpp)|CMakeLists.txt|conanfile\.*))).*$
2023-08-18 10:32:19 +00:00
- 'status-success=cpu-e2e'
2021-11-29 13:19:45 +00:00
actions :
label :
add :
- ci-passed
2021-05-12 02:36:00 +00:00
2022-09-01 06:36:57 +00:00
- name : Test passed for go unittest code changed-master
2021-09-08 08:07:59 +00:00
conditions :
2023-03-07 06:41:50 +00:00
- or :
2023-08-18 10:32:19 +00:00
- base=master
- base=sql_beta
- 'status-success=Build and test AMD64 Ubuntu 20.04'
- 'status-success=Code Checker AMD64 Ubuntu 20.04'
- 'status-success=Code Checker MacOS 12'
- 'status-success=Code Checker Amazonlinux 2023'
- 'status-success=UT for Go (20.04)'
2023-05-23 09:47:25 +00:00
- or :
2023-08-18 10:32:19 +00:00
- -files~=^(?!pkg\/..*test\.go).*$
- -files~=^(?!internal\/.*_test\.go).*$
2022-09-01 06:36:57 +00:00
actions :
label :
add :
- ci-passed
- name : Test passed for go unittest code changed -2.*.*
conditions :
- base~=^2(\.\d+){2}$
2023-08-18 10:32:19 +00:00
- 'status-success=Code Checker AMD64 Ubuntu 20.04'
- 'status-success=Build and test AMD64 Ubuntu 20.04'
- 'status-success=Code Checker MacOS 12'
- 'status-success=Code Checker CentOS 7'
2021-09-08 08:07:59 +00:00
- -files~=^(?!internal\/.*_test\.go).*$
actions :
label :
add :
- ci-passed
2021-05-31 07:13:32 +00:00
- name : Test passed for mergify changed
conditions :
2022-03-04 06:37:56 +00:00
- or :
2023-08-18 10:32:19 +00:00
- base=master
- base=sql_beta
- base~=^2(\.\d+){2}$
2021-05-31 07:13:32 +00:00
- -files~=^(?!\.github\/mergify\.yml).*$
actions :
label :
add :
- ci-passed
2021-12-17 06:25:16 +00:00
- name : Test passed for title skip e2e
2021-07-28 08:51:22 +00:00
conditions :
2022-03-04 06:37:56 +00:00
- or :
2023-08-18 10:32:19 +00:00
- base=master
- base=sql_beta
- base~=^2(\.\d+){2}$
2021-12-17 06:25:16 +00:00
- title~=\[skip e2e\]
2021-09-23 07:31:55 +00:00
- label=kind/improvement
2022-03-29 09:05:27 +00:00
- -files~=^(?=.*((\.(go|h|cpp)|CMakeLists.txt))).*$
2021-07-28 08:51:22 +00:00
actions :
label :
add :
- ci-passed
2023-08-08 08:11:08 +00:00
- name : Blocking PR if missing a related issue or doesn't have kind/improvement label
2021-07-14 13:29:55 +00:00
conditions :
2022-03-04 06:37:56 +00:00
- or :
2023-08-18 10:32:19 +00:00
- base=master
- base=sql_beta
- base~=^2(\.\d+){2}$
2022-03-28 14:14:18 +00:00
- and :
2023-08-18 10:32:19 +00:00
- -body~=\#[0-9]{1,6}(\s+|$)
- -body~=https://github.com/milvus-io/milvus/issues/[0-9]{1,6}(\s+|$)
2021-09-08 02:07:58 +00:00
- -label=kind/improvement
2021-07-15 09:26:26 +00:00
- -title~=\[automated\]
2021-07-14 13:29:55 +00:00
actions :
label :
add :
- do-not-merge/missing-related-issue
2021-07-15 04:01:55 +00:00
comment :
message : |
2022-04-01 13:33:29 +00:00
@{{author}} Please associate the related issue to the body of your Pull Request. (eg. “issue : #<xyz>”)
2021-07-15 04:01:55 +00:00
2021-07-14 13:29:55 +00:00
- name : Dismiss block label if related issue be added into PR
conditions :
2021-09-08 02:07:58 +00:00
- or :
2023-08-18 10:32:19 +00:00
- and :
- or :
- base=master
- base=sql_beta
- base~=^2(\.\d+){2}$
- or :
- body~=\#[0-9]{1,6}(\s+|$)
- body~=https://github.com/milvus-io/milvus/issues/[0-9]{1,6}(\s+|$)
- and :
- or :
- base=master
- base=sql_beta
- base~=^2(\.\d+){2}$
- label=kind/improvement
2021-07-16 03:41:55 +00:00
actions :
label :
remove :
- do-not-merge/missing-related-issue
2023-08-08 06:19:08 +00:00
- name : Blocking PR if missing a related master PR or doesn't have kind/branch-feature label
conditions :
- base=2.2.0
# - base~=^2(\.\d+){2}$
2023-08-08 08:11:08 +00:00
- and :
2023-08-18 10:32:19 +00:00
- -body~=pr\:\ \#[0-9]{1,6}(\s+|$)
- -body~=https://github.com/milvus-io/milvus/pull/[0-9]{1,6}(\s+|$)
2023-08-08 06:19:08 +00:00
- -label=kind/branch-feature
- -title~=\[automated\]
actions :
label :
add :
- do-not-merge/missing-related-pr
comment :
message : |
@{{author}} Please associate the related pr of master to the body of your Pull Request. (eg. “pr : #<xyz>”)
- name : Dismiss block label if related pr be added into PR
conditions :
- base=2.2.0
# - base~=^2(\.\d+){2}$
- or :
2023-08-18 10:32:19 +00:00
- body~=pr\:\ \#[0-9]{1,6}(\s+|$)
- body~=https://github.com/milvus-io/milvus/pull/[0-9]{1,6}(\s+|$)
- label=kind/branch-feature
2023-08-08 06:19:08 +00:00
actions :
label :
remove :
- do-not-merge/missing-related-pr
2021-07-16 03:41:55 +00:00
- name : Dismiss block label if automated create PR
conditions :
2022-03-04 06:37:56 +00:00
- or :
2023-08-18 10:32:19 +00:00
- base=master
- base=sql_beta
- base~=^2(\.\d+){2}$
2021-07-15 09:26:26 +00:00
- title~=\[automated\]
2021-07-14 13:29:55 +00:00
actions :
label :
remove :
- do-not-merge/missing-related-issue
2023-08-08 06:19:08 +00:00
- do-not-merge/missing-related-pr
2021-07-14 13:29:55 +00:00
2022-09-01 06:36:57 +00:00
- name : Test passed for skip e2e-master
2021-12-17 04:05:12 +00:00
conditions :
2023-03-07 06:41:50 +00:00
- or :
2023-08-18 10:32:19 +00:00
- base=master
- base=sql_beta
2021-12-17 04:05:12 +00:00
- title~=\[skip e2e\]
2023-08-18 10:32:19 +00:00
- 'status-success=Code Checker AMD64 Ubuntu 20.04'
- 'status-success=Build and test AMD64 Ubuntu 20.04'
- 'status-success=Code Checker MacOS 12'
- 'status-success=Code Checker Amazonlinux 2023'
2022-03-29 09:05:27 +00:00
- files~=^(?=.*((\.(go|h|cpp)|CMakeLists.txt))).*$
2021-12-17 04:05:12 +00:00
actions :
label :
add :
2021-12-17 07:25:12 +00:00
- ci-passed
2022-09-01 06:36:57 +00:00
- name : Test passed for skip e2e - 2.*.*
conditions :
- base~=^2(\.\d+){2}$
- title~=\[skip e2e\]
2023-08-18 10:32:19 +00:00
- 'status-success=Code Checker AMD64 Ubuntu 20.04'
- 'status-success=Build and test AMD64 Ubuntu 20.04'
- 'status-success=Code Checker MacOS 12'
- 'status-success=Code Checker CentOS 7'
2022-09-01 06:36:57 +00:00
- files~=^(?=.*((\.(go|h|cpp)|CMakeLists.txt))).*$
actions :
label :
add :
- ci-passed
2021-12-17 07:25:12 +00:00
2022-09-01 06:36:57 +00:00
- name : Remove ci-passed label when status for code checker or ut is not success-master
2021-12-17 07:25:12 +00:00
conditions :
2022-06-30 02:04:18 +00:00
- label!=manual-pass
2023-03-07 06:41:50 +00:00
- or :
2023-08-18 10:32:19 +00:00
- base=master
- base=sql_beta
2022-03-29 09:05:27 +00:00
- files~=^(?=.*((\.(go|h|cpp)|CMakeLists.txt))).*$
2021-12-17 07:25:12 +00:00
- or :
2023-08-18 10:32:19 +00:00
- 'status-success!=Code Checker AMD64 Ubuntu 20.04'
- 'status-success!=Build and test AMD64 Ubuntu 20.04'
- 'status-success!=Code Checker MacOS 12'
2023-08-22 00:32:22 +00:00
- 'status-success!=Code Checker Amazonlinux 2023'
2022-09-01 06:36:57 +00:00
actions :
label :
remove :
- ci-passed
- name : Remove ci-passed label when status for code checker or ut is not success-2.*.*
conditions :
- label!=manual-pass
- base~=^2(\.\d+){2}$
- files~=^(?=.*((\.(go|h|cpp)|CMakeLists.txt))).*$
- or :
2023-08-18 10:32:19 +00:00
- 'status-success!=Code Checker AMD64 Ubuntu 20.04'
- 'status-success!=Build and test AMD64 Ubuntu 20.04'
- 'status-success!=Code Checker MacOS 12'
- 'status-success!=Code Checker CentOS 7'
2021-12-17 08:29:35 +00:00
actions :
label :
remove :
- ci-passed
2021-12-22 06:41:06 +00:00
- name : Remove ci-passed label when status for jenkins job is not success
2021-12-17 08:29:35 +00:00
conditions :
2022-06-30 02:04:18 +00:00
- label!=manual-pass
2022-03-04 06:37:56 +00:00
- or :
2023-08-18 10:32:19 +00:00
- base=master
- base=sql_beta
- base~=^2(\.\d+){2}$
2021-12-17 08:29:35 +00:00
- -title~=\[skip e2e\]
2022-02-24 08:53:53 +00:00
- files~=^(?!(internal\/.*_test\.go|.*\.md)).*$
2023-08-18 10:32:19 +00:00
- 'status-success!=cpu-e2e'
2021-12-17 07:25:12 +00:00
actions :
label :
remove :
2021-12-21 02:56:53 +00:00
- ci-passed
2021-12-24 01:51:13 +00:00
- name : Add comment when jenkins job failed
conditions :
2022-03-04 06:37:56 +00:00
- or :
2023-08-18 10:32:19 +00:00
- base=master
- base=sql_beta
- base~=^2(\.\d+){2}$
- 'check-failure=cpu-e2e'
2021-12-24 01:51:13 +00:00
actions :
comment :
message : |
2022-08-01 02:30:33 +00:00
@{{author}} E2e jenkins job failed, comment `/run-cpu-e2e` can trigger the job again.
2021-12-24 01:51:13 +00:00
2022-09-01 06:36:57 +00:00
- name : Add comment when code checker or ut failed -master
2021-12-24 01:51:13 +00:00
conditions :
2023-03-07 06:41:50 +00:00
- or :
2023-08-18 10:32:19 +00:00
- base=master
- base=sql_beta
2021-12-24 01:51:13 +00:00
- or :
2023-08-18 10:32:19 +00:00
- 'check-failure=Code Checker AMD64 Ubuntu 20.04'
- 'check-failure=Build and test AMD64 Ubuntu 20.04'
2021-12-24 01:51:13 +00:00
actions :
comment :
message : |
2022-02-16 08:53:50 +00:00
@{{author}} ut workflow job failed, comment `rerun ut` can trigger the job again.
2022-09-01 06:36:57 +00:00
- name : Add comment when code checker or ut failed -2.*.*
conditions :
- base~=^2(\.\d+){2}$
- or :
2023-08-18 10:32:19 +00:00
- 'check-failure=Code Checker AMD64 Ubuntu 20.04'
- 'check-failure=Build and test AMD64 Ubuntu 20.04'
2022-09-01 06:36:57 +00:00
actions :
comment :
message : |
@{{author}} ut workflow job failed, comment `rerun ut` can trigger the job again.
2022-02-16 08:53:50 +00:00
- name : Add `needs-rebase` label when more than one commit in pr
conditions :
2022-03-04 06:37:56 +00:00
- or :
2023-08-18 10:32:19 +00:00
- base=master
- base=sql_beta
- base~=^2(\.\d+){2}$
- '#commits>1'
2022-02-16 08:53:50 +00:00
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 06:37:56 +00:00
- or :
2023-08-18 10:32:19 +00:00
- base=master
- base=sql_beta
- base~=^2(\.\d+){2}$
- '#commits=1'
2022-02-16 08:53:50 +00:00
actions :
label :
remove :
2022-12-13 03:27:21 +00:00
- needs-rebase