diff --git a/.github/policies/labelManagement.issueOpened.yml b/.github/policies/labelManagement.issueOpened.yml index d960f31efe..ad9d2bc298 100644 --- a/.github/policies/labelManagement.issueOpened.yml +++ b/.github/policies/labelManagement.issueOpened.yml @@ -15,6 +15,23 @@ configuration: action: Opened then: - addCodeFlowLink + - 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: Check for modifications of Localization files in new PRs if: - payloadType: Pull_Request