Commit d0d2d7c
Add labeler policy to auto-apply int:azure-specs label on linter rule changes (#4517)
## Summary
Adds a labeling policy (not a workflow) that automatically applies the
`int:azure-specs` label to PRs when linter rule source files are
modified.
## Approach
Uses the repo's existing `.github/policies/` mechanism (same as
`prs.triage.generated.yml`) rather than a GitHub Actions workflow. The
policy triggers on `Pull_Request` events and applies the label when
files match:
- `packages/typespec-azure-core/src/rules/**/*`
- `packages/typespec-azure-resource-manager/src/rules/**/*`
- `packages/typespec-client-generator-core/src/rules/**/*`
## Why
The `int:azure-specs` label triggers the External Integration workflow
which validates that linter rule changes don't break existing Azure
service specs. This automation ensures it's never forgotten.
Closes #4516
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 1277145 commit d0d2d7c
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments