Commit c7e7e61
Add Copilot-Instructions label policy rule (#6440)
## 📖 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 #6439
## 🔍 Validation
- Validated the YAML with PowerShell's powershell-yaml module
(ConvertFrom-Yaml).
- Cross-checked all conditions/actions (payloadType, isAction,
ilesMatchPattern, hasLabel, �ddLabel) against the documented
GitOps.PullRequestIssueManagement policy schema.
- Mirrors the existing idempotency pattern already used elsewhere in
this file.
## ✅ Checklist
- [x] Signed the [Contributor License
Agreement](https://cla.opensource.microsoft.com)
- [x] Linked to an issue
- [ ] Updated [Release Notes](../doc/ReleaseNotes.md) (if applicable)
- [ ] Updated documentation (if applicable)
- [ ] Updated [Copilot instructions](.github/copilot-instructions.md)
(if build, architecture, or conventions changed)
## 📋 Issue Type
- [ ] Bug fix
- [ ] Feature
- [x] Task
###### Microsoft Reviewers: [Open in
CodeFlow](https://microsoft.github.io/open-pr/?codeflow=https://github.com/microsoft/winget-cli/pull/6440)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 09f6afd commit c7e7e61
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
18 | 35 | | |
19 | 36 | | |
20 | 37 | | |
| |||
0 commit comments