From 09cf8700a7d87883d3fd8704e88865096eeeebd9 Mon Sep 17 00:00:00 2001 From: Bennu Date: Tue, 8 Aug 2023 16:11:08 +0800 Subject: [PATCH] Update mergify rule for related pr (#26209) Signed-off-by: Bennu-Li --- .github/mergify.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/mergify.yml b/.github/mergify.yml index 7a750a353f..a7009f4dda 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -156,7 +156,7 @@ pull_request_rules: - ci-passed - - name: Blocking PR if missing a related issue or PR doesn't have kind/improvement label + - name: Blocking PR if missing a related issue or doesn't have kind/improvement label conditions: - or: - base=master @@ -202,7 +202,9 @@ pull_request_rules: conditions: - base=2.2.0 # - base~=^2(\.\d+){2}$ - - -body~=https://github.com/milvus-io/milvus/pull/[0-9]{1,6}(\s+|$) + - and: + - -body~=pr\:\ \#[0-9]{1,6}(\s+|$) + - -body~=https://github.com/milvus-io/milvus/pull/[0-9]{1,6}(\s+|$) - -label=kind/branch-feature - -title~=\[automated\] actions: @@ -219,7 +221,8 @@ pull_request_rules: - base=2.2.0 # - base~=^2(\.\d+){2}$ - or: - - body~=https://github.com/milvus-io/milvus/issues/[0-9]{1,6}(\s+|$) + - body~=pr\:\ \#[0-9]{1,6}(\s+|$) + - body~=https://github.com/milvus-io/milvus/pull/[0-9]{1,6}(\s+|$) - label=kind/branch-feature actions: label: