milvus/.github/mergify.yml
Xiangyu Wang cd11c50932
[skip ci]Update mergify (#5237)
Signed-off-by: Xiangyu Wang <xiangyu.wang@zilliz.com>
2021-05-15 13:02:31 +08:00

81 lines
2.2 KiB
YAML

pull_request_rules:
- name: Auto merge for code changed
conditions:
- base=master
- "status-success=Code Checker AMD64 Ubuntu 18.04"
- "status-success=Build and test AMD64 Ubuntu 18.04"
- "status-success=continuous-integration/jenkins/pr-merge"
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- -title~=(?i)\[wip\]
- -label=do-not-merge/work-in-progress
- -body~=[^\n]{72,}
- "status-success=DCO"
- -label=manual-merge
actions:
merge:
method: squash
commit_message: title+body
- name: Auto merge for tests changed
conditions:
- base=master
- -files~=^(?!test[0-9]*).+
- "status-success=continuous-integration/jenkins/pr-merge"
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- -title~=(?i)\[wip\]
- -label=do-not-merge/work-in-progress
- -body~=[^\n]{72,}
- "status-success=DCO"
- -label=manual-merge
actions:
merge:
method: squash
commit_message: title+body
- name: Auto merge for document changed
conditions:
- base=master
- -files~=^[^\.]+$
- -files~=\.(?!md|png)
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- -body~=[^\n]{72,}
- -title~=(?i)\[wip\]
- -label=do-not-merge/work-in-progress
- "status-success=DCO"
- -label=manual-merge
actions:
merge:
method: squash
commit_message: title+body
- name: Warn on width limit exceeded
conditions:
- base=master
- body~=[^\n]{72,}
actions:
comment:
message: |
The pull request body line width exceeded limit. Could you fix it @{{author}}?
- name: Warn on conflict
conditions:
- base=master
- conflict
actions:
comment:
message: |
This pull request is now in conflicts. Could you fix it @{{author}}? 🙏
- name: Warn on DCO failed
conditions:
- base=master
- -status-success=DCO
actions:
comment:
message: |
DCO check failed. Could you fix it @{{author}}? 🙏