From ed2897f336b579cd6c1f5f6e48d2d5931804d315 Mon Sep 17 00:00:00 2001 From: Rafael Vasquez Date: Wed, 17 Dec 2025 19:46:44 -0500 Subject: [PATCH] [CI][Feature] Adds auto-rebase PR rule (#30875) Signed-off-by: Rafael Vasquez Co-authored-by: Kevin H. Luu --- .github/mergify.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/mergify.yml b/.github/mergify.yml index 3e4e21efe39df..61a03135be395 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -349,6 +349,18 @@ pull_request_rules: add: - tool-calling +- name: auto-rebase if approved, ready, and 40 commits behind main + conditions: + - base = main + - label=ready + - "#approved-reviews-by >= 1" + - "#commits-behind >= 40" + - -closed + - -draft + - -conflict + actions: + rebase: {} + - name: ping author on conflicts and add 'needs-rebase' label conditions: - label != stale