mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
4495cf84f0
Signed-off-by: Xiangyu Wang <xiangyu.wang@zilliz.com>
54 lines
1.6 KiB
YAML
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
|
|
|