milvus/.github/mergify.yml
Xiangyu Wang 4495cf84f0
[skip ci]Add a mergify rule (#5021)
Signed-off-by: Xiangyu Wang <xiangyu.wang@zilliz.com>
2021-04-24 10:24:18 +08:00

54 lines
1.6 KiB
YAML

pull_request_rules:
- name: add auto-merge label if the title does not contain “[WIP]”
conditions:
- base=master
- -title~=(?i)\[wip\]
actions:
label:
add:
- "PR | automerge"
- name: automatic merge for master when ci passed and the title does not contain “[WIP]”
conditions:
- base=master
- -title~=(?i)\[wip\]
- "label=PR | automerge"
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- "status-success=DCO"
- "status-success=continuous-integration/jenkins/pr-merge"
- "status-success=AMD64 Ubuntu 18.04"
actions:
merge:
method: squash
- name: automatic merge for master when document files changed only and the title does not contain “[WIP]”
conditions:
- base=master
- -title~=(?i)\[wip\]
- "label=PR | automerge"
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- "status-success=DCO"
- -files~=\.(?!md|png)
actions:
merge:
method: squash
- name: Use the title and body from the pull request itself as the commit message
conditions:
- base=master
- -title~=(?i)\[wip\]
- "label=PR | message from pull request"
- "#approved-reviews-by>=1"
- "approved-reviews-by=czs007"
- "#changes-requested-reviews-by=0"
- "status-success=DCO"
- "status-success=continuous-integration/jenkins/pr-merge"
- "status-success=AMD64 Ubuntu 18.04"
actions:
merge:
method: squash
commit_message: title+body