From 8aff783dcd2c68c847424cf443c891e7ade602aa Mon Sep 17 00:00:00 2001 From: Inon Man <121477599+inon-man@users.noreply.github.com> Date: Fri, 9 Aug 2024 11:20:51 +0900 Subject: [PATCH] build(ci): mergify rules for backporting to release/v3.1.x --- .mergify.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.mergify.yml b/.mergify.yml index 11d7354c3..49af9739a 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -1,26 +1,32 @@ +defaults: + actions: + backport: + assignees: + - "{{ author }}" + queue_rules: - name: default conditions: - - "#approved-reviews-by>2" + - "#approved-reviews-by>1" + commit_message_template: | + {{ title }} (#{{ number }}) + {{ body }} pull_request_rules: - - name: automerge to main with label automerge and branch protection passing + - name: Automatic merge on approval to the main branch conditions: - - "#approved-reviews-by>2" + - "#approved-reviews-by>=1" - 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 + - name: Backport patches to release/v3.1.x branch conditions: - base=main - - label=backport/v2.1.x + - label=backport/v3.1.x actions: backport: branches: - - release/v2.1.x + - release/v3.1.x \ No newline at end of file