From bf23bff1501719f142ed7dbefdb3c366f45b7b93 Mon Sep 17 00:00:00 2001 From: Jenny Li Date: Wed, 16 Feb 2022 16:53:50 +0800 Subject: [PATCH] [skip e2e]Add commit number check for pr (#15598) Signed-off-by: Jenny Li --- .github/mergify.yml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.github/mergify.yml b/.github/mergify.yml index 8f06881e25..d22f42f77b 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -180,4 +180,28 @@ pull_request_rules: actions: comment: message: | - @{{author}} ut workflow job failed, comment `rerun ut` can trigger the job again. \ No newline at end of file + @{{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 \ No newline at end of file