2024-08-27 07:40:59 +00:00
misc :
2024-02-04 10:55:05 +00:00
- &source_code_files files~=^(?=.*((\.(go|h|cpp)|go.sum|go.mod|CMakeLists.txt|conanfile\.*))).*$
- &no_source_code_files -files~=^(?=.*((\.(go|h|cpp)|go.sum|go.mod|CMakeLists.txt|conanfile\.*))).*$
2024-06-26 09:54:05 +00:00
- when_build_and_test_status_successs : &Build_AND_TEST_STATUS_SUCESS_ON_UBUNTU_20_OR_UBUNTU_22
- 'status-success=Build and test AMD64 Ubuntu 20.04'
- 'status-success=Build and test AMD64 Ubuntu 22.04'
- when_build_and_test_status_failed : &Build_AND_TEST_STATUS_FAILED_ON_UBUNTU_20_OR_UBUNTU_22
2024-06-26 10:50:04 +00:00
- &failed_on_ubuntu_20 'check-failure=Build and test AMD64 Ubuntu 20.04'
- &failed_on_ubuntu_22 'check-failure=Build and test AMD64 Ubuntu 22.04'
2024-09-09 08:17:06 +00:00
- when_go_sdk_status_success : &WHEN_GO_SDK_STATUS_SUCCESS
- 'status-success=go-sdk'
2024-10-23 09:19:28 +00:00
- 'status-success=milvus-sdk-go'
- when_cpp_unit_test_success : &WHEN_CPP_UNIT_TEST_SUCCESS
- 'status-success=cpp-unit-test'
- 'status-success=UT for Cpp'
- when_go_unit_test_success : &WHEN_GO_UNIT_TEST_SUCCESS
- 'status-success=go-unit-test'
- 'status-success=UT for Go'
- when_integration_unit_test_success : &WHEN_INTEGRATION_UNIT_TEST_SUCCESS
- 'status-success=integration-test'
- 'status-success=Integration Test'
2024-09-10 07:21:07 +00:00
- branch : &BRANCHES
# In this pull request, the changes are based on the master branch
2024-09-10 02:59:06 +00:00
- &MASTER_BRANCH base=master
2024-10-28 11:18:23 +00:00
- &23_BRANCH base=2.3
- &24_BRANCH base=2.4
- &25_BRANCH base=2.5
2024-09-10 07:21:07 +00:00
# In this pull request, the changes are based on the 2.x(or 2.x.x) branch
2024-09-10 02:59:06 +00:00
- &2X_BRANCH base~=^2(\.\d+){1,2}$
2024-02-04 10:55:05 +00:00
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 :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
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 :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
2021-11-29 08:17:18 +00:00
- status-success=DCO
actions :
label :
remove :
- needs-dco
add :
- dco-passed
2024-09-10 02:59:06 +00:00
- name : Test passed for code changed on master
2021-04-22 02:49:02 +00:00
conditions :
2024-09-10 02:59:06 +00:00
- *MASTER_BRANCH
2024-06-26 09:54:05 +00:00
- or : *Build_AND_TEST_STATUS_SUCESS_ON_UBUNTU_20_OR_UBUNTU_22
2024-09-09 08:17:06 +00:00
- or : *WHEN_GO_SDK_STATUS_SUCCESS
2024-10-23 09:19:28 +00:00
- or : *WHEN_CPP_UNIT_TEST_SUCCESS
- or : *WHEN_GO_UNIT_TEST_SUCCESS
- or : *WHEN_INTEGRATION_UNIT_TEST_SUCCESS
2024-07-30 07:53:51 +00:00
- 'status-success=Code Checker AMD64 Ubuntu 22.04'
2024-10-14 06:09:21 +00:00
- 'status-success=Code Checker MacOS 12'
2024-06-24 13:16:02 +00:00
# - 'status-success=Code Checker Amazonlinux 2023'
2023-08-18 10:32:19 +00:00
- 'status-success=cpu-e2e'
2024-06-22 08:12:00 +00:00
# - 'status-success=codecov/patch'
# - 'status-success=codecov/project'
2022-09-01 06:36:57 +00:00
actions :
label :
add :
- ci-passed
2024-09-10 02:59:06 +00:00
- name : Test passed for code changed on 2.* branch
2022-09-01 06:36:57 +00:00
conditions :
2024-09-10 02:59:06 +00:00
- *2X_BRANCH
2024-07-30 07:53:51 +00:00
- 'status-success=Code Checker AMD64 Ubuntu 22.04'
2024-06-26 09:54:05 +00:00
- or : *Build_AND_TEST_STATUS_SUCESS_ON_UBUNTU_20_OR_UBUNTU_22
2024-10-23 09:19:28 +00:00
- or : *WHEN_CPP_UNIT_TEST_SUCCESS
- or : *WHEN_GO_UNIT_TEST_SUCCESS
- or : *WHEN_INTEGRATION_UNIT_TEST_SUCCESS
2024-10-14 06:09:21 +00:00
- 'status-success=Code Checker MacOS 12'
2024-06-24 13:16:02 +00:00
# - 'status-success=Code Checker CentOS 7'
2023-08-18 10:32:19 +00:00
- 'status-success=cpu-e2e'
2024-06-22 08:12:00 +00:00
# - '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
2023-09-07 04:03:15 +00:00
2021-05-31 06:08:30 +00:00
- name : Test passed for tests changed
2021-05-12 02:36:00 +00:00
conditions :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
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 :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
2023-08-18 10:32:19 +00:00
- -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 :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
2023-08-18 10:32:19 +00:00
- 'status-success=cpu-e2e'
2024-02-04 10:55:05 +00:00
- *no_source_code_files
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 :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
2024-06-26 09:54:05 +00:00
- or : *Build_AND_TEST_STATUS_SUCESS_ON_UBUNTU_20_OR_UBUNTU_22
2024-07-30 07:53:51 +00:00
- 'status-success=Code Checker AMD64 Ubuntu 22.04'
2024-10-14 06:09:21 +00:00
- 'status-success=Code Checker MacOS 12'
2024-06-24 13:16:02 +00:00
# - 'status-success=Code Checker Amazonlinux 2023'
2024-10-23 09:19:28 +00:00
- or : *WHEN_GO_UNIT_TEST_SUCCESS
2023-05-23 09:47:25 +00:00
- or :
2023-09-06 10:33:14 +00:00
- -files~=^(?!pkg\/.*_test\.go).*$
2023-08-18 10:32:19 +00:00
- -files~=^(?!internal\/.*_test\.go).*$
2022-09-01 06:36:57 +00:00
actions :
label :
add :
- ci-passed
2023-09-07 04:03:15 +00:00
- name : Test passed for go unittest code changed -2.2.*
2022-09-01 06:36:57 +00:00
conditions :
2024-09-10 07:21:07 +00:00
- *2X_BRANCH
2024-06-26 09:54:05 +00:00
- or : *Build_AND_TEST_STATUS_SUCESS_ON_UBUNTU_20_OR_UBUNTU_22
2024-07-30 07:53:51 +00:00
- 'status-success=Code Checker AMD64 Ubuntu 22.04'
2024-10-14 06:09:21 +00:00
- 'status-success=Code Checker MacOS 12'
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 :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
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 :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
2021-12-17 06:25:16 +00:00
- title~=\[skip e2e\]
2023-11-16 08:00:20 +00:00
- label=kind/enhancement
2024-02-04 10:55:05 +00:00
- *no_source_code_files
2021-07-28 08:51:22 +00:00
actions :
label :
add :
- ci-passed
2023-11-16 08:00:20 +00:00
- name : Blocking PR if missing a related issue or doesn't have kind/enhancement label
2021-07-14 13:29:55 +00:00
conditions :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
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+|$)
2024-01-17 07:16:55 +00:00
- or :
- and :
- label=kind/enhancement
- or :
- label=size/L
- label=size/XL
- label=size/XXL
- label=kind/bug
- label=kind/feature
2023-11-16 09:22:20 +00:00
- -label=kind/doc
- -label=kind/test
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 :
2024-01-17 07:16:55 +00:00
- and :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
2024-01-17 07:16:55 +00:00
- or :
- body~=\#[0-9]{1,6}(\s+|$)
- body~=https://github.com/milvus-io/milvus/issues/[0-9]{1,6}(\s+|$)
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 :
2024-09-10 07:21:07 +00:00
- *2X_BRANCH
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 :
2024-09-10 07:21:07 +00:00
- *2X_BRANCH
2023-08-08 06:19:08 +00:00
- 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 :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
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 :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
2024-06-26 09:54:05 +00:00
- or : *Build_AND_TEST_STATUS_SUCESS_ON_UBUNTU_20_OR_UBUNTU_22
2021-12-17 04:05:12 +00:00
- title~=\[skip e2e\]
2024-10-23 09:19:28 +00:00
- or : *WHEN_CPP_UNIT_TEST_SUCCESS
- or : *WHEN_GO_UNIT_TEST_SUCCESS
- or : *WHEN_INTEGRATION_UNIT_TEST_SUCCESS
2024-07-30 07:53:51 +00:00
- 'status-success=Code Checker AMD64 Ubuntu 22.04'
2024-10-14 06:09:21 +00:00
- 'status-success=Code Checker MacOS 12'
2024-06-24 13:16:02 +00:00
# - 'status-success=Code Checker Amazonlinux 2023'
2024-02-04 10:55:05 +00:00
- *source_code_files
2021-12-17 04:05:12 +00:00
actions :
label :
add :
2021-12-17 07:25:12 +00:00
- ci-passed
2023-09-07 04:03:15 +00:00
- name : Test passed for skip e2e - 2.2.*
2022-09-01 06:36:57 +00:00
conditions :
2024-09-10 07:21:07 +00:00
- *2X_BRANCH
2024-06-26 09:54:05 +00:00
- or : *Build_AND_TEST_STATUS_SUCESS_ON_UBUNTU_20_OR_UBUNTU_22
2022-09-01 06:36:57 +00:00
- title~=\[skip e2e\]
2024-10-23 09:19:28 +00:00
- or : *WHEN_CPP_UNIT_TEST_SUCCESS
- or : *WHEN_GO_UNIT_TEST_SUCCESS
- or : *WHEN_INTEGRATION_UNIT_TEST_SUCCESS
2024-10-14 06:09:21 +00:00
- 'status-success=Code Checker MacOS 12'
2024-02-04 10:55:05 +00:00
- *source_code_files
2022-09-01 06:36:57 +00:00
actions :
label :
add :
- ci-passed
2021-12-17 07:25:12 +00:00
2023-11-30 04:03:55 +00:00
- name : Assign the 'lgtm' and 'approved' labels following the successful testing of the 'Update Knowhere Commit'
conditions :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
2023-11-30 04:03:55 +00:00
- 'title~=Update Knowhere Commit'
- label=ci-passed
actions :
label :
add :
- lgtm
- approved
2024-10-28 11:18:23 +00:00
- name : master or 2.5 - Remove ci-passed label when status for code checker or ut is not success
2021-12-17 07:25:12 +00:00
conditions :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
2024-10-28 11:18:23 +00:00
- or :
- *MASTER_BRANCH
- *25_BRANCH
2022-06-30 02:04:18 +00:00
- label!=manual-pass
2024-02-18 06:38:49 +00:00
- *source_code_files
2021-12-17 07:25:12 +00:00
- or :
2024-06-26 09:54:05 +00:00
- *failed_on_ubuntu_20
- *failed_on_ubuntu_22
2024-07-30 07:53:51 +00:00
- 'status-success!=Code Checker AMD64 Ubuntu 22.04'
2024-10-24 02:33:27 +00:00
- 'status-success!=cpp-unit-test'
2024-06-25 02:58:01 +00:00
- 'status-success!=UT for Go'
- 'status-success!=Integration Test'
2024-10-14 06:09:21 +00:00
- 'status-success!=Code Checker MacOS 12'
2024-06-24 13:16:02 +00:00
# - 'status-success!=Code Checker Amazonlinux 2023'
2022-09-01 06:36:57 +00:00
actions :
label :
remove :
- ci-passed
2023-09-07 04:03:15 +00:00
2024-10-28 11:18:23 +00:00
- name : 2.3 or 2.4 - Remove ci-passed label when status for code checker or ut is not success
2022-09-01 06:36:57 +00:00
conditions :
2024-10-28 11:18:23 +00:00
- or :
- *23_BRANCH
- *24_BRANCH
2022-09-01 06:36:57 +00:00
- label!=manual-pass
2024-02-18 06:38:49 +00:00
- *source_code_files
2022-09-01 06:36:57 +00:00
- or :
2024-06-26 09:54:05 +00:00
- *failed_on_ubuntu_20
- *failed_on_ubuntu_22
2024-06-24 13:16:02 +00:00
# - 'status-success!=Code Checker AMD64 Ubuntu 20.04'
2024-10-24 11:23:29 +00:00
- 'status-success!=UT for Cpp'
2024-06-25 02:58:01 +00:00
- 'status-success!=UT for Go'
- 'status-success!=Integration Test'
2024-10-14 06:09:21 +00:00
- 'status-success!=Code Checker MacOS 12'
2024-06-24 13:16:02 +00:00
# - 'status-success!=Code Checker CentOS 7'
2021-12-17 08:29:35 +00:00
actions :
label :
remove :
- ci-passed
2023-09-07 04:03:15 +00:00
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 :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
2022-06-30 02:04:18 +00:00
- label!=manual-pass
2021-12-17 08:29:35 +00:00
- -title~=\[skip e2e\]
2023-09-06 10:33:14 +00:00
- files~=^(?!(.*_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 :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
2023-08-18 10:32:19 +00:00
- '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
2024-10-23 09:19:28 +00:00
# when go-sdk check failed, prompt user to rerun go-sdk job
2024-09-09 08:17:06 +00:00
- name : Add comment when go-sdk check failed
conditions :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
2024-09-09 08:17:06 +00:00
- 'check-failure=go-sdk'
actions :
comment :
message : |
@{{author}} go-sdk check failed, comment `rerun go-sdk` can trigger the job again.
2024-10-23 09:19:28 +00:00
# when cpp-unit-test check failed, prompt user to rerun cpp-unit-test job
- name : Add comment when cpp-unit-test check failed
conditions :
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
- 'check-failure=cpp-unit-test'
actions :
comment :
message : |
@{{author}} cpp-unit-test check failed, comment `rerun cpp-unit-test` can trigger the job again.
# when go-unit-test check failed, prompt user to rerun go-unit-test job
- name : Add comment when go-unit-test check failed
conditions :
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
- 'check-failure=go-unit-test'
actions :
comment :
message : |
@{{author}} go-unit-test check failed, comment `rerun go-unit-test` can trigger the job again.
# when integration-test check failed, prompt user to rerun integration-test job
- name : Add comment when integration-test check failed
conditions :
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
- 'check-failure=integration-test'
actions :
comment :
message : |
@{{author}} integration-test check failed, comment `rerun integration-test` can trigger the job again.
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 :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
2021-12-24 01:51:13 +00:00
- or :
2024-06-24 13:16:02 +00:00
# - 'check-failure=Code Checker AMD64 Ubuntu 20.04'
2023-08-18 10:32:19 +00:00
- '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.
2023-09-07 04:03:15 +00:00
- name : Add comment when code checker or ut failed -2.2.*
2022-09-01 06:36:57 +00:00
conditions :
2024-09-10 07:21:07 +00:00
- *2X_BRANCH
2022-09-01 06:36:57 +00:00
- or :
2024-06-24 13:16:02 +00:00
# - 'check-failure=Code Checker AMD64 Ubuntu 20.04'
2023-08-18 10:32:19 +00:00
- '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
2023-11-16 08:00:20 +00:00
- name : Add 'do-not-merge/invalid-pr-format' label for invalid PR titles
2022-02-16 08:53:50 +00:00
conditions :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
2023-11-16 10:06:19 +00:00
- or :
2023-11-24 01:42:23 +00:00
- '-title~=^(feat:|enhance:|fix:|test:|doc:|auto:|\[automated\])'
2023-11-16 08:00:20 +00:00
- body=^$
2022-02-16 08:53:50 +00:00
actions :
2023-11-16 08:00:20 +00:00
label :
add :
- do-not-merge/invalid-pr-format
2022-02-16 08:53:50 +00:00
comment :
message : |
2023-11-16 08:00:20 +00:00
@{{author}}
**Invalid PR Title Format Detected**
Your PR submission does not adhere to our required standards. To ensure clarity and consistency, please meet the following criteria :
1. **Title Format:** The PR title must begin with one of these prefixes :
- `feat:` for introducing a new feature.
- `fix:` for bug fixes.
2023-11-16 09:22:20 +00:00
- `enhance:` for improvements to existing functionality.
- `test` : for add tests to existing functionality.
- `doc` : for modifying documentation.
2023-11-24 01:42:23 +00:00
- `auto` : for the pull request from bot.
2023-11-16 08:00:20 +00:00
2 . **Description Requirement:** The PR must include a non-empty description, detailing the changes and their impact.
**Required Title Structure:**
```
[Type] : [ Description of the PR]
```
2023-11-16 09:22:20 +00:00
Where `Type` is one of `feat`, `fix`, `enhance`, `test` or `doc`.
2023-11-16 08:00:20 +00:00
**Example:**
```
2023-11-16 09:22:20 +00:00
enhance : improve search performance significantly
2023-11-16 08:00:20 +00:00
```
Please review and update your PR to comply with these guidelines.
- name : Remove 'do-not-merge/invalid-pr-format' label for valid PRs
conditions :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
2023-11-24 01:42:23 +00:00
- 'title~=^(feat:|enhance:|fix:|test:|doc:|auto:|\[automated\])'
2023-11-16 08:00:20 +00:00
- '-body=^$'
- 'label=do-not-merge/invalid-pr-format'
actions :
label :
remove :
- do-not-merge/invalid-pr-format
- name : Label bug fix PRs
conditions :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
2023-11-16 08:00:20 +00:00
- 'title~=^fix:'
actions :
2022-02-16 08:53:50 +00:00
label :
add :
2023-11-16 08:00:20 +00:00
- kind/bug
2022-02-16 08:53:50 +00:00
2023-11-16 08:00:20 +00:00
- name : Label feature PRs
2022-02-16 08:53:50 +00:00
conditions :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
2023-11-16 08:00:20 +00:00
- 'title~=^feat:'
2022-02-16 08:53:50 +00:00
actions :
label :
2023-11-16 08:00:20 +00:00
add :
- kind/feature
- name : Label enhancement PRs
conditions :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
2023-11-16 08:00:20 +00:00
- 'title~=^enhance:'
actions :
label :
add :
2023-11-16 09:22:20 +00:00
- kind/enhancement
- name : Label test PRs
conditions :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
2023-11-16 09:22:20 +00:00
- 'title~=^test:'
actions :
label :
add :
- kind/test
- name : Label doc PRs
conditions :
2024-09-10 07:21:07 +00:00
# branch condition: in this pull request, the changes are based on any branch referenced by BRANCHES
- or : *BRANCHES
2023-11-16 09:22:20 +00:00
- 'title~=^doc:'
actions :
label :
add :
- kind/doc
2024-02-05 05:56:27 +00:00