From c0b708462a727cc97cf4931124b91a19ae2dad4a Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Mon, 7 Apr 2025 18:00:59 +0530 Subject: [PATCH] ci: added mergify.yml for backport --- .mergify.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .mergify.yml diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 00000000..e5f81c7e --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,35 @@ +pull_request_rules: + - name: Auto-close PRs on stable branch + conditions: + - and: + - and: + - author!=shariquerik + - author!=frappe-pr-bot + - author!=mergify[bot] + - or: + - base=main + actions: + close: + comment: + message: | + @{{author}}, thanks for the contribution, but we do not accept pull requests on a stable branch. Please raise PR on develop branch. + + - name: backport to develop + conditions: + - label="backport develop" + actions: + backport: + branches: + - develop + assignees: + - "{{ author }}" + + - name: backport to main + conditions: + - label="backport main" + actions: + backport: + branches: + - main + assignees: + - "{{ author }}"