Skip to content

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

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. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions