Skip to content

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

Closed

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.

Activity

  1. added
    Copilot-Instructions
    on Aug 6, 2026
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-Instructions

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions