milvus/.github/mergify.yml

184 lines
4.7 KiB
YAML
Raw Normal View History

pull_request_rules:
- name: Add needs-dco label when DCO check failed
conditions:
- base=master
- -status-success=DCO
actions:
label:
remove:
- dco-passed
add:
- needs-dco
- name: Add dco-passed label when DCO check passed
conditions:
- base=master
- status-success=DCO
actions:
label:
remove:
- needs-dco
add:
- dco-passed
- name: Test passed 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"
- "status-success=codecov/patch"
- "status-success=codecov/project"
actions:
label:
add:
- ci-passed
- name: Test passed for tests changed
conditions:
- base=master
- -files~=^(?!tests\/python_client).+
- "status-success=continuous-integration/jenkins/pr-merge"
actions:
label:
add:
- ci-passed
- name: Test passed for non go or c++ code changed
conditions:
- base=master
- files~=^(?!.*\.(go|h|cpp)).*$
- "status-success=continuous-integration/jenkins/pr-merge"
actions:
label:
add:
- ci-passed
- name: Test passed for go unittest code changed
conditions:
- base=master
- "status-success=Code Checker AMD64 Ubuntu 18.04"
- "status-success=Build and test AMD64 Ubuntu 18.04"
- -files~=^(?!internal\/.*_test\.go).*$
actions:
label:
add:
- ci-passed
- name: Test passed for mergify changed
conditions:
- base=master
- -files~=^(?!\.github\/mergify\.yml).*$
actions:
label:
add:
- ci-passed
- name: Test passed for title skip e2e
conditions:
- base=master
- title~=\[skip e2e\]
- label=kind/improvement
- files~=^(?!.*\.(go|h|cpp)).*$
actions:
label:
add:
- ci-passed
- name: Blocking PR if missing a related issue or PR doesn't have kind/improvement label
conditions:
- base=master
- -body~=\#[0-9]{1,6}(\s+|$)
- -label=kind/improvement
- -title~=\[automated\]
actions:
label:
add:
- do-not-merge/missing-related-issue
comment:
message: |
@{{author}} Please associate the related issue to the body of your Pull Request. (eg. “issue: #6534”)
- name: Dismiss block label if related issue be added into PR
conditions:
- or:
- and:
- base=master
- body~=\#[0-9]{1,6}(\s+|$)
- and:
- base=master
- label=kind/improvement
actions:
label:
remove:
- do-not-merge/missing-related-issue
- name: Dismiss block label if automated create PR
conditions:
- base=master
- title~=\[automated\]
actions:
label:
remove:
- do-not-merge/missing-related-issue
- name: Test passed for skip e2e
conditions:
- base=master
- title~=\[skip e2e\]
- "status-success=Code Checker AMD64 Ubuntu 18.04"
- "status-success=Build and test AMD64 Ubuntu 18.04"
- -files~=^(?!.*\.(go|h|cpp)).*$
actions:
label:
add:
- ci-passed
- name: Remove ci-passed label when status for code checker or ut is not success
conditions:
- base=master
- -files~=^(?!.*\.(go|h|cpp)).*$
- or:
- "status-success!=Code Checker AMD64 Ubuntu 18.04"
- "status-success!=Build and test AMD64 Ubuntu 18.04"
actions:
label:
remove:
- ci-passed
- name: Remove ci-passed label when status for jenkins job is not success
conditions:
- base=master
- -files~=^(?!.*\.(go|h|cpp)).*$
- files~=^(?!internal\/.*_test\.go).*$
- -title~=\[skip e2e\]
- "status-success!=continuous-integration/jenkins/pr-merge"
actions:
label:
remove:
- ci-passed
- name: Add comment when jenkins job failed
conditions:
- base=master
- "check-failure=continuous-integration/jenkins/pr-merge"
actions:
comment:
message: |
@{{author}} E2e jenkins job failed, comment `/run-checks` can trigger the job again.
- name: Add comment when code checker or ut failed
conditions:
- base=master
- or:
- "check-failure=Code Checker AMD64 Ubuntu 18.04"
- "check-failure=Build and test AMD64 Ubuntu 18.04"
actions:
comment:
message: |
@{{author}} ut workflow job failed, comment `rerun ut` can trigger the job again.