Files
openwrt-packages/.github/workflows/labeler.yml
George Sapkin a9ae28811a ci: add PR labeler workflow
Label based on target release branch. Labels must be manually defined to
avoid giving the action unnecessary permissions. Release labels must be
defined in the config after each release is forked.

Signed-off-by: George Sapkin <george@sapk.in>
2025-12-03 11:20:05 +01:00

21 lines
366 B
YAML

name: 'Pull Request Labeler'
on:
- pull_request_target
permissions:
contents: read
jobs:
labeler:
permissions:
contents: read
pull-requests: write
name: Pull Request Labeler
runs-on: ubuntu-slim
steps:
- uses: actions/labeler@v6
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
sync-labels: true