Merge pull request #722 from shariquerik/added-mergify

ci: added mergify.yml for backport
This commit is contained in:
Shariq Ansari 2025-04-07 21:17:59 +05:30 committed by GitHub
commit d9f0b067ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

35
.mergify.yml Normal file
View File

@ -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 }}"