mirror of
https://github.com/openwrt/packages.git
synced 2025-12-10 12:41:22 +00: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>
This commit is contained in:
committed by
Josef Schlehofer
parent
12342ac3ea
commit
a9ae28811a
7
.github/labeler.yml
vendored
Normal file
7
.github/labeler.yml
vendored
Normal 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
.github/workflows/labeler.yml
vendored
Normal file
20
.github/workflows/labeler.yml
vendored
Normal 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
|
||||||
Reference in New Issue
Block a user