From 4a36a917360af0d01b9d52ebead058dd9804a198 Mon Sep 17 00:00:00 2001 From: Demitrius Nelon Date: Thu, 6 Aug 2026 13:33:28 -0700 Subject: [PATCH] Add Copilot-Instructions label policy rule Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .../policies/labelManagement.issueOpened.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/policies/labelManagement.issueOpened.yml b/.github/policies/labelManagement.issueOpened.yml index b337ed7d509e1..1b8bc09191d05 100644 --- a/.github/policies/labelManagement.issueOpened.yml +++ b/.github/policies/labelManagement.issueOpened.yml @@ -55,6 +55,23 @@ configuration: then: - addLabel: label: Needs-CLA + - description: Add Copilot-Instructions label to PRs modifying Copilot instruction files + if: + - payloadType: Pull_Request + - or: + - isAction: + action: Opened + - isAction: + action: Synchronize + - filesMatchPattern: + pattern: ^\.github/(copilot-instructions\.md|instructions/.+\.instructions\.md)$ + matchAny: true + - not: + hasLabel: + label: Copilot-Instructions + then: + - addLabel: + label: Copilot-Instructions - description: Add Needs-Triage to new issues if: - payloadType: Issues