mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2026-11-13 10:27:37 +00:00
Adds actions/labeler config + workflow that tags each PR with the relevant area/* label(s) based on the files it touches, so the subsystem taxonomy stays applied to PRs without manual effort. - sync-labels is off: labels are only added, never stripped, so hand-applied labels are preserved. - Uses pull_request_target so PRs from forks can be labeled; the workflow never checks out or executes PR code. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
22 lines
594 B
YAML
22 lines
594 B
YAML
name: "PR Labeler"
|
|
|
|
# Auto-labels PRs with area/* based on the files they touch (see .github/labeler.yml).
|
|
# pull_request_target is used so PRs from forks can be labeled too — this workflow
|
|
# never checks out or runs PR code, so it is safe against the usual _target risks.
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
permissions:
|
|
contents: read
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
label:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/labeler@v5
|
|
with:
|
|
# Only add labels; never strip labels applied by hand.
|
|
sync-labels: false
|