2021-11-15 21:37:19 +03:00
|
|
|
queue_rules:
|
|
|
|
- name: default
|
|
|
|
conditions:
|
|
|
|
# Conditions to get out of the queue (= merged)
|
2023-05-01 22:31:13 +03:00
|
|
|
- check-success=Decision Task
|
|
|
|
- check-success=run-tests
|
|
|
|
- check-success=check-formatting
|
|
|
|
- "#check-success>=5" # we should always have at least this many checks
|
2021-11-15 21:37:19 +03:00
|
|
|
- "#check-pending=0"
|
|
|
|
- "#check-stale=0"
|
|
|
|
- "#check-failure=0"
|
2020-04-17 01:11:44 +03:00
|
|
|
pull_request_rules:
|
|
|
|
- name: remove outdated reviews for non-core authors
|
|
|
|
conditions:
|
2020-06-26 02:21:01 +03:00
|
|
|
- base=main
|
2020-04-17 01:11:44 +03:00
|
|
|
- author!=@mozilla/application-services
|
2021-03-18 23:14:25 +03:00
|
|
|
- author!=@mozilla/application-services-collaborators
|
2022-09-20 05:07:46 +03:00
|
|
|
- author!=@mozilla/release-management
|
2020-04-17 01:11:44 +03:00
|
|
|
actions:
|
|
|
|
dismiss_reviews:
|
|
|
|
message: The pull request has been modified, dismissing previous reviews.
|
|
|
|
label:
|
|
|
|
remove:
|
|
|
|
- checkin-needed
|
2020-06-26 02:21:01 +03:00
|
|
|
- name: automatic merge for main
|
2020-04-17 01:11:44 +03:00
|
|
|
conditions:
|
|
|
|
- "#approved-reviews-by>=1"
|
2023-05-01 22:31:13 +03:00
|
|
|
- "#changes-requested-reviews-by=0"
|
2020-06-26 02:21:01 +03:00
|
|
|
- base=main
|
2020-04-17 01:11:44 +03:00
|
|
|
- label=checkin-needed
|
2021-06-18 05:57:49 +03:00
|
|
|
# What we want to say here is "all checks passed", but that's not a concept
|
|
|
|
# that makes sense in GitHub:
|
|
|
|
#
|
|
|
|
# https://docs.mergify.io/conditions/#validating-all-status-checks
|
|
|
|
#
|
|
|
|
# But we don't want to just list out all the checks, because we have many of
|
|
|
|
# them and some of them are added dynamically and we might add or remove checks
|
|
|
|
# without updating the list here.
|
|
|
|
#
|
|
|
|
# So instead we insist that a small set of known checks has completed,
|
|
|
|
# and also that there are no other checks in unexpected states.
|
2023-05-01 22:31:13 +03:00
|
|
|
- check-success=Decision Task
|
|
|
|
- check-success=run-tests
|
|
|
|
- check-success=ios-test-and-artifacts
|
|
|
|
- check-success=clippy
|
|
|
|
- check-success=check-formatting
|
|
|
|
- "#check-success>=5" # we should always have at least this many checks
|
2021-06-18 05:57:49 +03:00
|
|
|
- "#check-pending=0"
|
|
|
|
- "#check-stale=0"
|
|
|
|
- "#check-failure=0"
|
2020-04-17 01:11:44 +03:00
|
|
|
actions:
|
2021-06-18 05:57:49 +03:00
|
|
|
# This merges by rebasing without strict merge, which means that mergify will *attempt*
|
|
|
|
# to rebase a matching PR directly on to the `main` branch, even if the PR is out of date.
|
|
|
|
# However, our GitHub branch protection rules require that PRs must be up-to-date before merging,
|
|
|
|
# and mergify respects these rules, so the expected behaviour here is that mergify will only
|
|
|
|
# merge when it can cleanly put the exact commits of the PR directly on top of `main`
|
|
|
|
# (and thus avoid having to re-write any commits or create merge commits of its own).
|
2021-11-15 21:37:19 +03:00
|
|
|
queue:
|
2021-06-18 05:57:49 +03:00
|
|
|
method: rebase
|
2021-11-15 21:37:19 +03:00
|
|
|
name: default
|