Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
167 changes: 80 additions & 87 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -1,91 +1,84 @@
pull_request_rules:
- name: Auto-approve and merge dependabot PRs
conditions:
- base = main
- author = dependabot[bot]
- -draft
- label != do-not-merge
- -files~=\.github/workflows/release\.yml
- check-success = DCO
- check-success = quality
- check-success = test
- check-success = test-cross-platform (ubuntu-latest, Linux)
- check-success = test-cross-platform (ubuntu-22.04, Linux)
- check-success = test-cross-platform (macos-latest, macOS)
- check-success = test-cross-platform (windows-latest, Windows)
- check-success = coverage
actions:
review:
type: APPROVE
message: Automatically approved by Mergify
merge:
method: squash

- name: Auto-approve and merge dosubot PRs
conditions:
- base = main
- name: Auto-approve and merge dependabot PRs
conditions:
- base = main
- author = dependabot[bot]
- -draft
- label != do-not-merge
- -files~=\.github/workflows/release\.yml
- check-success = DCO
- check-success = quality
- check-success = test
- check-success = test-cross-platform (ubuntu-latest, Linux)
- check-success = test-cross-platform (ubuntu-22.04, Linux)
- check-success = test-cross-platform (macos-latest, macOS)
- check-success = test-cross-platform (windows-latest, Windows)
- check-success = coverage
actions:
review:
type: APPROVE
message: Automatically approved by Mergify
merge:
method: squash
- name: Auto-approve and merge dosubot PRs
conditions:
- base = main
- author = dosubot[bot]
- -draft
- label != do-not-merge
- check-success = DCO
- check-success = quality
- check-success = test
- check-success = test-cross-platform (ubuntu-latest, Linux)
- check-success = test-cross-platform (ubuntu-22.04, Linux)
- check-success = test-cross-platform (macos-latest, macOS)
- check-success = test-cross-platform (windows-latest, Windows)
- check-success = coverage
actions:
review:
type: APPROVE
message: Automatically approved by Mergify
merge:
method: squash
- name: Auto-merge release-plz PRs
conditions:
- base = main
- head ~= ^release-plz-
- -draft
- label != do-not-merge
- check-success = DCO
actions:
merge:
method: squash
- name: Keep bot PRs up to date with main
conditions:
- base = main
- -conflict
- -draft
- or:
- author = dosubot[bot]
- -draft
- label != do-not-merge
- check-success = DCO
- check-success = quality
- check-success = test
- check-success = test-cross-platform (ubuntu-latest, Linux)
- check-success = test-cross-platform (ubuntu-22.04, Linux)
- check-success = test-cross-platform (macos-latest, macOS)
- check-success = test-cross-platform (windows-latest, Windows)
- check-success = coverage
actions:
review:
type: APPROVE
message: Automatically approved by Mergify
merge:
method: squash

- name: Auto-merge release-plz PRs
conditions:
- base = main
- head ~= ^release-plz-
- -draft
- label != do-not-merge
- check-success = DCO
actions:
merge:
method: squash

- name: Keep bot PRs up to date with main
conditions:
- base = main
- -conflict
- -draft
- or:
- author = dependabot[bot]
- author = dosubot[bot]
- head ~= ^release-plz-
actions:
update: {}

actions:
update: {}
merge_protections:
- name: CI must pass
description: >-
All CI checks must pass. Release-plz PRs are exempt because
they only bump versions and changelogs (code was already tested
on main), and GITHUB_TOKEN-triggered force-pushes suppress CI.
if:
- base = main
- "-head ~= ^release-plz-"
success_conditions:
- check-success = quality
- check-success = test
- check-success = test-cross-platform (ubuntu-latest, Linux)
- check-success = test-cross-platform (ubuntu-22.04, Linux)
- check-success = test-cross-platform (macos-latest, macOS)
- check-success = test-cross-platform (windows-latest, Windows)
- check-success = coverage

- name: Do not merge outdated PRs
description: Make sure PRs are within 10 commits of the base branch before merging
if:
- base = main
success_conditions:
- "#commits-behind <= 3"
- name: CI must pass
description: All CI checks must pass. Release-plz PRs are exempt because they
only bump versions and changelogs (code was already tested on main), and
GITHUB_TOKEN-triggered force-pushes suppress CI.
if:
- base = main
- -head ~= ^release-plz-
success_conditions:
- check-success = quality
- check-success = test
- check-success = test-cross-platform (ubuntu-latest, Linux)
- check-success = test-cross-platform (ubuntu-22.04, Linux)
- check-success = test-cross-platform (macos-latest, macOS)
- check-success = test-cross-platform (windows-latest, Windows)
- check-success = coverage
- name: Do not merge outdated PRs
description: Make sure PRs are within 10 commits of the base branch before merging
if:
- base = main
success_conditions:
- "#commits-behind <= 3"
Comment on lines +80 to +84
Loading