Skip to content

Commit 3e922f8

Browse files
authored
Merge branch 'master' into feature/standalone-projects
2 parents 3801d55 + b50e7e8 commit 3e922f8

File tree

1 file changed

+26
-10
lines changed

1 file changed

+26
-10
lines changed

.github/mergify.yml

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
# NOTE: the PR is added to the queue when all checks have passed
2-
# and the CI is fully green.
3-
# If the PR is behind the queue will take care of updating it
41
queue_rules:
52
- name: default
6-
queue_conditions:
3+
queue_conditions: # condtions to be met to add the PR to the queue (manually or automatically)
74
# general prerequisits fo accept the PR in the queue
85
- label=🤖-automerge # let Mergify know that the PR can be merged (added manually)
96
- label!=🤖-do-not-merge # block Mergify from merging the PR (added manually)
@@ -16,17 +13,17 @@ queue_rules:
1613
- "#changes-requested-reviews-by=0" # No changes requested
1714
- "#review-threads-unresolved=0" # All review threads resolved
1815

19-
merge_conditions:
16+
merge_conditions: # conditions to be met before being able to merge
2017
# list of CI checks that need to pass
18+
- check-success=system-test-environment-setup
19+
- check-success=changes
20+
- check-success=build-test-images
21+
- check-success=build-test-images-frontend
2122
- check-success=unit-tests
2223
- check-success=integration-tests
2324
- check-success=system-tests
2425

25-
# NOTE: in case of flaky tests you above checks will fail
26-
# the PR will be removed from the queue.
27-
# Once the PR is ready to be merged the flaky tests will
28-
# be retried automatically.
29-
# As soon as the CI is green, the PR will be pushed to the queue
26+
3027
pull_request_rules:
3128
- name: retry flaky tests (when PR is approved)
3229
conditions:
@@ -41,6 +38,10 @@ pull_request_rules:
4138
- "#review-threads-unresolved=0" # All review threads resolved
4239

4340
- or:
41+
- check-failure=system-test-environment-setup
42+
- check-failure=changes
43+
- check-failure=build-test-images
44+
- check-failure=build-test-images-frontend
4445
- check-failure=unit-tests
4546
- check-failure=integration-tests
4647
- check-failure=system-tests
@@ -51,3 +52,18 @@ pull_request_rules:
5152
workflow:
5253
dispatch:
5354
- workflow: ci-testing-deploy.yml
55+
56+
- name: Automatically add PR to queue if it meets conditions
57+
conditions:
58+
- "label=🤖-automerge"
59+
- "label!=🤖-do-not-merge"
60+
- "base=master"
61+
62+
- "-draft" # PR is not in draft state
63+
- "-conflict" # PR has no conflicts
64+
- "#approved-reviews-by>=2" # Requires 2 approvals
65+
- "#changes-requested-reviews-by=0" # No requested changes
66+
- "#review-threads-unresolved=0" # All review threads resolved
67+
actions:
68+
queue:
69+
name: default

0 commit comments

Comments
 (0)