jcloude/.mergify.yml
2025-12-23 19:17:16 +08:00

43 lines
1012 B
YAML

pull_request_rules:
- name: Auto-close PRs on stable branch
conditions:
- and:
- and:
- author!=frappe-pr-bot
- author!=mergify[bot]
- author!=github-actions
- or:
- base=master
actions:
comment:
message: |
@{{author}}, thanks for the contribution, but we do not accept pull requests on a master. Please close this PR and raise PR on an develop branch.
- name: backport to develop
conditions:
- label="backport-develop"
actions:
backport:
branches:
- develop
assignees:
- "{{ author }}"
- name: backport to master
conditions:
- label="backport-master"
actions:
backport:
branches:
- master
assignees:
- "{{ author }}"
- name: Label PRs targeting develop with 'backport-master'
conditions:
- base=develop
actions:
label:
add:
- backport-master