From 4495cf84f0aba6bdbb7d6fed74ec2fcdffa1443e Mon Sep 17 00:00:00 2001 From: Xiangyu Wang Date: Sat, 24 Apr 2021 10:24:18 +0800 Subject: [PATCH] [skip ci]Add a mergify rule (#5021) Signed-off-by: Xiangyu Wang --- .github/mergify.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/mergify.yml b/.github/mergify.yml index 8560b36bdb..0178a7ae12 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -34,3 +34,20 @@ pull_request_rules: actions: merge: method: squash + + - name: Use the title and body from the pull request itself as the commit message + conditions: + - base=master + - -title~=(?i)\[wip\] + - "label=PR | message from pull request" + - "#approved-reviews-by>=1" + - "approved-reviews-by=czs007" + - "#changes-requested-reviews-by=0" + - "status-success=DCO" + - "status-success=continuous-integration/jenkins/pr-merge" + - "status-success=AMD64 Ubuntu 18.04" + actions: + merge: + method: squash + commit_message: title+body +