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>
(cherry picked from commit a9ae28811a)
This commit is contained in:
George Sapkin authored and Josef Schlehofer committed 2026-06-30 18:01:59 +02:00
1 parent 01c9bb4fcf
commit 2424d05127
2 files changed
+27

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
# branches
"OpenWrt 23.05 (end of support)":
- base-branch:
- "openwrt-23.05"
"OpenWrt 24.10":
- base-branch:
- "openwrt-24.10"
+20
View File
@@ -0,0 +1,20 @@
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