forked from os-autoinst/openQA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
45 lines (45 loc) · 1.75 KB
/
.mergify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
pull_request_rules:
- name: automatic merge
conditions:
- and: &base_checks
- base=master
- -label~=^acceptance-tests-needed|not-ready
# wait explicitly for one of the final checks to show up to be on the
# safe side even in case of checks not reporting back at all
- "status-success=codecov/project"
- "status-success=codecov/patch"
# Multibuild results will not report the "pending" status:
# https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.scm_ci_workflow_integration.html#sec.obs.obs_scm_ci_workflow_integration.setup.status_reporting
# "unresolvable" is not reported in general:
# https://trello.com/c/0N3jHq5M/2257-report-back-to-scm-when-build-results-arent-failed-and-succeeded
# So we need to require the number of tests explicitly:
- "#check-success>=35"
- "status-success=static-check-containers"
- "status-success=webui-docker-compose"
- "#check-failure=0"
- "#check-pending=0"
- linear-history
- and:
- "#approved-reviews-by>=2"
- "#changes-requested-reviews-by=0"
# https://doc.mergify.io/examples.html#require-all-requested-reviews-to-be-approved
- "#review-requested=0"
actions: &merge
merge:
method: merge
- name: automatic merge on special label
conditions:
- and: *base_checks
- "label=merge-fast"
actions: *merge
- name: automatic merge for dependency bot updates
conditions:
- and: *base_checks
- author~=^openqabot$
actions: *merge
- name: ask to resolve conflict
conditions:
- conflict
actions:
comment:
message: This pull request is now in conflicts. Could you fix it? 🙏