From e5ff32beee2e19df5bc8b034559bb911e69a53a1 Mon Sep 17 00:00:00 2001 From: "edward.zeng" Date: Wed, 8 Sep 2021 10:07:58 +0800 Subject: [PATCH] PR with imporvement can merge without linking a issue (#7542) Signed-off-by: Edward Zeng --- .github/mergify.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/mergify.yml b/.github/mergify.yml index eb34c28f8c..ad50614558 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -96,10 +96,11 @@ pull_request_rules: remove: - ci-passed - - name: Blocking PR if missing a related issue + - name: Blocking PR if missing a related issue or PR doesn't have kind/improvement label conditions: - base=master - -body~=\#[0-9]{1,6}(\s+|$) + - -label=kind/improvement - -title~=\[automated\] actions: label: @@ -112,8 +113,13 @@ pull_request_rules: - name: Dismiss block label if related issue be added into PR conditions: - - base=master - - body~=\#[0-9]{1,6}(\s+|$) + - or: + - and: + - base=master + - body~=\#[0-9]{1,6}(\s+|$) + - and: + - base=master + - label=kind/improvement actions: label: remove: