Skip to content

Add Copilot-Instructions label policy rule - #763

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

Add Copilot-Instructions label policy rule#763
Demitrius Nelon (denelon) wants to merge 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 #762

🔍 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>
Copilot AI balanced review requested due to automatic review settings August 6, 2026 20:38
@denelon
Demitrius Nelon (denelon) marked this pull request as ready for review August 6, 2026 21:01
@denelon
Demitrius Nelon (denelon) requested a review from a team as a code owner August 6, 2026 21:01

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@huzaifa-d
Huzaifa Danish (huzaifa-d) requested a balanced review from Copilot August 6, 2026 21:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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

3 participants