Skip to content

Add Copilot-Instructions label policy rule - #320

Open
Demitrius Nelon (denelon) wants to merge 1 commit into
microsoft:mainfrom
denelon:add-copilot-instructions-label
Open

Add Copilot-Instructions label policy rule#320
Demitrius Nelon (denelon) wants to merge 1 commit into
microsoft:mainfrom
denelon:add-copilot-instructions-label

Conversation

@denelon

Copy link
Copy Markdown
Contributor

📖 Description

Adds a new policy-bot configuration (.github/policies/labelManagement.issueOpened.yml, which did not previously exist in this repo) with a rule that automatically applies a Copilot-Instructions label to pull requests that modify .github/copilot-instructions.md or any .github/instructions/*.instructions.md file, so reviewers get extra visibility when Copilot's guidance changes.

The rule triggers on PR Opened and Synchronize, matches files via regex, and is guarded with a
ot: hasLabel check so it won't re-fire once the label is already applied. It intentionally contains only this one rule and does not copy any unrelated rules from sibling repos.

Created with GitHub Copilot's assistance.

🔗 References

Closes #319

🔍 Validation

  • Validated the YAML with PowerShell's powershell-yaml module (ConvertFrom-Yaml).
  • Cross-checked all conditions/actions against the documented GitOps.PullRequestIssueManagement policy schema.

✅ Checklist

📋 Issue Type

  • Bug fix
  • Feature
  • Task

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@denelon
Demitrius Nelon (denelon) marked this pull request as ready for review August 6, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Copilot-Instructions label policy rule for PR visibility

2 participants