mirror of
https://github.com/openwrt/packages.git
synced 2026-10-14 09:56:47 +04:00
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:
1 parent
01c9bb4fcf
commit
2424d05127
2 files changed
+27
No files matched your search
@@ -0,0 +1,7 @@
|
||||
# branches
|
||||
"OpenWrt 23.05 (end of support)":
|
||||
- base-branch:
|
||||
- "openwrt-23.05"
|
||||
"OpenWrt 24.10":
|
||||
- base-branch:
|
||||
- "openwrt-24.10"
|
||||
@@ -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
|
||||
Reference in new issue
Block a user