Skip to content

Commit f046191

Browse files
authored
Merge pull request #9110 from Neon-White/autorebase-rule
Modify Mergify logic
2 parents 4b1f6f5 + c16674d commit f046191

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

.mergify.yml

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,34 @@ pull_request_rules:
22
- name: Auto-rebase PRs
33
description: This rule automatically rebases PRs that fit the criteria
44
conditions:
5+
# Verify that (almost) all checks are successful, label is present, PR is approved, and PR is not a draft
56
- and:
67
- -draft
8+
- check-success = CodeRabbit
79
- label = Enable-Auto-Rebase
10+
- check-success = build-noobaa-image
11+
- check-success = run-jest-unit-tests
12+
- check-success = warp-tests / warp-tests
13+
- check-success = run-package-lock-validation
814
- branch-protection-review-decision = APPROVED
9-
- "#check-failure = 0"
10-
- "#check-neutral = 0"
11-
- "#check-pending = 0"
12-
- "#check-skipped = 0"
13-
- "#check-stale = 0"
15+
- check-success = ceph-s3-tests / ceph-s3-tests
16+
- check-success = warp-nc-tests / warp-nc-tests
17+
- check-success = run-unit-tests / run-unit-tests
18+
- check-success = run-sanity-tests / run-sanity-tests
19+
- check-success = run-nc-unit-tests / run-nc-unit-tests
20+
- check-success = ceph-nsfs-s3-tests / nsfs-ceph-s3-tests
21+
- check-success = run-sanity-ssl-tests / run-sanity-ssl-tests
22+
- check-success = run-unit-tests-postgres / run-unit-tests-postgres
23+
# Sometimes, DCO and DeepScan fall under 'check-pending'
24+
# These conditions verify they either both pass or are the only ones in 'check-pending'
25+
- or:
26+
- and:
27+
- check-pending = DCO
28+
- check-pending = DeepScan
29+
- "#check-pending = 2"
30+
- and:
31+
- check-success = DCO
32+
- check-success = DeepScan
1433
actions:
1534
rebase:
1635
autosquash: false

0 commit comments

Comments
 (0)