Skip to content

Add Copilot-Instructions label policy rule - #694

Merged
Demitrius Nelon (denelon) merged 1 commit into
microsoft:mainfrom
denelon:add-copilot-instructions-label
Aug 6, 2026
Merged

Add Copilot-Instructions label policy rule#694
Demitrius Nelon (denelon) merged 1 commit into
microsoft:mainfrom
denelon:add-copilot-instructions-label

Conversation

@denelon

@denelon Demitrius Nelon (denelon) commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

📖 Description

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

Created with GitHub Copilot's assistance.

🔗 References

Closes #693

🔍 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
Microsoft Reviewers: Open in CodeFlow

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@denelon
Demitrius Nelon (denelon) marked this pull request as ready for review August 6, 2026 21:01
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@denelon
Demitrius Nelon (denelon) merged commit 81aa34b into microsoft:main Aug 6, 2026
3 checks passed
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