43 lines
1013 B
YAML
43 lines
1013 B
YAML
pull_request_rules:
|
|
- name: Auto-close PRs on stable branch
|
|
conditions:
|
|
- and:
|
|
- and:
|
|
- author!=jingrow-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
|