From ce39d877ab06bcbba9a556ad93970837e7f09999 Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Fri, 20 Feb 2026 14:44:51 -0800 Subject: [PATCH] Fix case-sensitive regex to match Copilot author The Copilot coding agent's login is `Copilot` (capital C), so the lowercase regex `.*copilot.*` didn't match. Add explicit `author=Copilot` and use case-insensitive regex with `(?i)` flag. Co-Authored-By: Claude Opus 4.6 --- .github/mergify.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/mergify.yml b/.github/mergify.yml index 29124e83..e3acb0f2 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -12,9 +12,9 @@ shared: is_copilot_author: &is_copilot_author or: - "author=github-copilot[bot]" - - "author~=.*copilot.*" - - "body~=Co-authored-by:.*github-copilot" - - "body~=Co-authored-by:.*copilot" + - "author=Copilot" + - "author~=(?i).*copilot.*" + - "body~=(?i)Co-authored-by:.*copilot" # Not a bot user not_a_bot: ¬_a_bot