Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions