From 786cb8252ad479d41393b7538269b613a042fef8 Mon Sep 17 00:00:00 2001 From: UncleSp1d3r Date: Sat, 14 Mar 2026 04:30:52 -0400 Subject: [PATCH] ci(Mergify): configuration update Signed-off-by: UncleSp1d3r --- .mergify.yml | 167 ++++++++++++++++++++++++--------------------------- 1 file changed, 80 insertions(+), 87 deletions(-) diff --git a/.mergify.yml b/.mergify.yml index 7af109b7..68d0da21 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -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"