Skip to content

Add Copilot-Instructions label policy rule for PR visibility #762

Description

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.

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 an event-responder rule to .github/policies/labelManagement.issueOpened.yml that applies the label on PR Opened/Synchronize when changed files match the instruction-file pattern, guarded by a
    ot: hasLabel idempotency check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Copilot-InstructionsPR modifies Copilot instruction files (.github/copilot-instructions.md or .github/instructions/)Needs-Triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions