diff options
| author | Josef Schlehofer | 2026-07-16 21:52:35 +0000 |
|---|---|---|
| committer | Christian Marangi | 2026-07-20 10:50:41 +0000 |
| commit | 7df79b25f5ebcb51d5f059cf73f8ae72fae4419d (patch) | |
| tree | df30a7e6bb4ce9be2af97bb7459c512dd599a756 | |
| parent | a30deed6bd4348283e8e116014f7da0d8697fdc5 (diff) | |
CI: remove labeler workflow and enable webhook-based labeling
Remove the .github/workflows/labeler.yml workflow and enable the "enable_labeler_yml" option in .github/formalities.json to let the webhook bot handle pull request labeling. This avoids running on GitHub Actions, so it is faster and uses fewer resources.
It uses the existing .github/labeler.yml for labels.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24256
(cherry picked from commit 4f2dc5cc6497a6cef0a43bdefde522e734c1f40d)
Link: https://github.com/openwrt/openwrt/pull/24319
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
| -rw-r--r-- | .github/formalities.json | 3 | ||||
| -rw-r--r-- | .github/workflows/labeler.yml | 19 |
2 files changed, 2 insertions, 20 deletions
diff --git a/.github/formalities.json b/.github/formalities.json index cdbfd200e4..1face8ed12 100644 --- a/.github/formalities.json +++ b/.github/formalities.json @@ -24,5 +24,6 @@ "check_makefile_indentation": false, "check_pkg_release": "warning", "require_linked_github_account": true, - "enable_stale_bot": false + "enable_stale_bot": false, + "enable_labeler_yml": true } diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index b64d3e4a2b..0000000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: 'Pull Request Labeler' -on: - - pull_request_target - -permissions: - contents: read - -jobs: - labeler: - permissions: - contents: read # to determine modified files (actions/labeler) - pull-requests: write # to add labels to PRs (actions/labeler) - - name: Pull Request Labeler - runs-on: ubuntu-latest - steps: - - uses: actions/labeler@v6 - with: - repo-token: '${{ secrets.GITHUB_TOKEN }}' |