Files
unleashed-firmware/.github/workflows/labeler.yml
T
Mykhailo ShevchukandClaude Opus 4.8 bcc05f2bcb ci: auto-label PRs with area/* by changed paths (#1019) [ci skip]
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>
2026-07-03 18:59:36 +03:00

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