From b7c3be95ec1d9af1d4b0a9163e873b7d3587c00c Mon Sep 17 00:00:00 2001 From: alchemist-ti <134163224+alchemist-ti@users.noreply.github.com> Date: Tue, 27 Jun 2023 19:24:09 +0800 Subject: [PATCH] tools: add mergify (#294) --- .mergify.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .mergify.yml diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 000000000..11d7354c3 --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,26 @@ +queue_rules: + - name: default + conditions: + - "#approved-reviews-by>2" + +pull_request_rules: + - name: automerge to main with label automerge and branch protection passing + conditions: + - "#approved-reviews-by>2" + - base=main + - label=A:automerge + actions: + queue: + name: default + method: squash + commit_message_template: | + {{ title }} (#{{ number }}) + {{ body }} + - name: backport patches to v2.1.x branch + conditions: + - base=main + - label=backport/v2.1.x + actions: + backport: + branches: + - release/v2.1.x