Repository navigation
Add deterministic GH workflow PR labeler - #69008
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The workflow’s labeling call can fail as an all-or-nothing operation if any label is invalid/missing, reducing reliability of the labeling behavior.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds a deterministic GitHub Actions workflow to automatically apply area-* labels to newly opened/reopened pull requests based on changed file paths, using a longest-prefix-wins mapping aligned with the issue triage area classification.
Changes:
- Introduces a
pull_request_targetworkflow that inspects PR changed files and derives one or morearea-*labels. - Implements deterministic longest-path-prefix matching with a
.props/.targetsfallback toarea-infrastructure. - Adds concurrency control to avoid concurrent labeling runs on the same PR.
File summaries
| File | Description |
|---|---|
| .github/workflows/labeler-area-paths.yml | New workflow that classifies changed-file paths into area-* labels and applies them to PRs. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 3
- Review effort level: Lite
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at. |
|
Why do we need a deterministic PR labeler, if we have the issue-triage agent workflow, which should do this? |
|
sorry missed that's it is PR labeler; |
Adds a workflow that adds
area-*labels to opened PRs based on the files changed.The path to area label mapping is taken from the issue triage agentic workflow.
Tested on my fork and it works: Youssef1313#81