[skip e2e]Add commit number check for pr (#15598)

Signed-off-by: Jenny Li <jing.li@zilliz.com>
This commit is contained in:
Jenny Li 2022-02-16 16:53:50 +08:00 committed by GitHub
parent 405def679c
commit bf23bff150
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

26
.github/mergify.yml vendored
View File

@ -180,4 +180,28 @@ pull_request_rules:
actions:
comment:
message: |
@{{author}} ut workflow job failed, comment `rerun ut` can trigger the job again.
@{{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:
- base=master
- "#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:
- base=master
- "#commits=1"
actions:
label:
remove:
- needs-rebase