From 92436c4dab5be8898051a4a3a3d87d311f10778e Mon Sep 17 00:00:00 2001 From: Ivan Fernandez Calvo Date: Wed, 24 Mar 2021 15:32:38 +0100 Subject: [PATCH] feat: add support for auto-backports --- .mergify.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .mergify.yml diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 00000000000..986bb2414ed --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,31 @@ +pull_request_rules: + - name: ask to resolve conflict + conditions: + - conflict + actions: + comment: + message: | + This pull request is now in conflicts. Could you fix it @{{author}}? 🙏 + To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/ + ``` + git fetch upstream + git checkout -b {{head}} upstream/{{head}} + git merge upstream/{{base}} + git push upstream {{head}} + ``` + - name: backport patches to 7.x branch + conditions: + - base=master + - label=v7.13.0 + actions: + backport: + branches: + - "7.x" + - name: backport patches to 7.12 branch + conditions: + - base=master + - label=v7.12.0 + actions: + backport: + branches: + - "7.12"