From: George Sapkin Date: Fri, 7 Nov 2025 21:21:18 +0000 (+0200) Subject: ci: add PR labeler workflow X-Git-Url: http://git.openwrt.org/?a=commitdiff_plain;h=a9ae28811ab78218ac734502dfc60eade5b08048;p=feed%2Fpackages.git 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 --- diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..749cf3e497 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,7 @@ +# branches +"OpenWrt 23.05 (end of support)": +- base-branch: + - "openwrt-23.05" +"OpenWrt 24.10": +- base-branch: + - "openwrt-24.10" diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..29396df9be --- /dev/null +++ b/.github/workflows/labeler.yml @@ -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