From e7c3b89c2f5e4eb5d43728a5a65efab573e5d540 Mon Sep 17 00:00:00 2001 From: av-dev2 Date: Thu, 2 Mar 2023 12:02:14 +0300 Subject: [PATCH] feat: add mergify to automate backporting of pull requests to other branches --- .mergify.yml | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .mergify.yml diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 0000000..a4fc8ad --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,50 @@ +pull_request_rules: + - name: Assign author to review conflict and add label of 'conflict' + conditions: + - conflict + actions: + label: + add: + - conflict + assign: + add_users: + - aakvatech + - "{{author}}" + comment: + message: "@{{author}} this pull request is now in conflict 😩" + + + - name: backport to develop branch + conditions: + - label = develop + actions: + backport: + branches: + - develop + assignees: + - aakvatech + - "{{author}}" + + + - name: backport to version-13 branch + conditions: + - label = version-13 + actions: + backport: + branches: + - version-13 + assignees: + - aakvatech + - "{{author}}" + + + - name: backport to version-14 branch + conditions: + - label = version-14 + actions: + backport: + branches + - version-14 + assignees: + - aakvatech + - "{{author}}"