From f9c92e0e64cad2ffe1008e9c751bc6a8a001037c Mon Sep 17 00:00:00 2001 From: Benjamin Smith Date: Fri, 20 Feb 2026 14:20:50 -0800 Subject: [PATCH] Do not close empty Copilot pull requests Exclude GitHub Copilot-authored PRs from automatic closure when they have no file changes, similar to cloudposse-terraform-components/.github#148. This allows Copilot PRs to be reviewed before closure. Co-Authored-By: Claude Haiku 4.5 --- .github/mergify.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/mergify.yml b/.github/mergify.yml index e9185ff6..29124e83 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -8,6 +8,14 @@ shared: - "author=dependabot[bot]" - "author=renovate[bot]" + # Pull requests created or co-authored by GitHub Copilot + is_copilot_author: &is_copilot_author + or: + - "author=github-copilot[bot]" + - "author~=.*copilot.*" + - "body~=Co-authored-by:.*github-copilot" + - "body~=Co-authored-by:.*copilot" + # Not a bot user not_a_bot: ¬_a_bot - and: @@ -398,6 +406,8 @@ pull_request_rules: conditions: - and: *is_open - and: *has_no_changes + - not: + *is_copilot_author actions: label: add: