From bc2c6018f70f813770126aef8474f63187a9dd63 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Thu, 7 Apr 2022 17:53:01 +0530 Subject: [PATCH] ci: mergify auto merge on passing CI + approvals --- .mergify.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/.mergify.yml b/.mergify.yml index 315d90febc..cc8c0802f1 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -88,3 +88,37 @@ pull_request_rules: - version-12-pre-release assignees: - "{{ author }}" + + - name: Automatic merge on CI success and review + conditions: + - status-success=linters + - status-success=Sider + - status-success=Semantic Pull Request + - status-success=Patch Test + - status-success=Python Unit Tests (1) + - status-success=Python Unit Tests (2) + - status-success=Python Unit Tests (3) + - label!=dont-merge + - label!=squash + - "#approved-reviews-by>=1" + actions: + merge: + method: merge + - name: Automatic squash on CI success and review + conditions: + - status-success=linters + - status-success=Sider + - status-success=Patch Test + - status-success=Python Unit Tests (1) + - status-success=Python Unit Tests (2) + - status-success=Python Unit Tests (3) + - label!=dont-merge + - label=squash + - "#approved-reviews-by>=1" + actions: + merge: + method: squash + commit_message_template: | + {{ title }} (#{{ number }}) + + {{ body }}