Description
Add a policy-bot rule to automatically apply a Copilot-Instructions label to pull requests that modify .github/copilot-instructions.md or any .github/instructions/*.instructions.md file. This repository did not previously have any .github/policies/ configuration.
Motivation
Changes to Copilot instruction files affect how the Copilot coding agent behaves across the repository. These changes deserve extra visibility during PR review so maintainers can quickly spot and prioritize review of instruction-file changes without having to inspect the diff to notice it.
Proposed change
- Create a Copilot-Instructions label (already added to this repo).
- Add a new
.github/policies/labelManagement.issueOpened.yml policy-bot file containing a single event-responder rule that applies the label on PR Opened/Synchronize when changed files match the instruction-file pattern, guarded by a
ot: hasLabel idempotency check.
Description
Add a policy-bot rule to automatically apply a Copilot-Instructions label to pull requests that modify .github/copilot-instructions.md or any .github/instructions/*.instructions.md file. This repository did not previously have any .github/policies/ configuration.
Motivation
Changes to Copilot instruction files affect how the Copilot coding agent behaves across the repository. These changes deserve extra visibility during PR review so maintainers can quickly spot and prioritize review of instruction-file changes without having to inspect the diff to notice it.
Proposed change
.github/policies/labelManagement.issueOpened.ymlpolicy-bot file containing a single event-responder rule that applies the label on PR Opened/Synchronize when changed files match the instruction-file pattern, guarded by aot: hasLabel idempotency check.