labeler: update to latest commit and limit file-based label to 5 (#41358)

When doing large refactors or large changes the bot spams
labels left and right, making the PR unreadable. Use the
new option to limit the bot to a max of 5 file-based
labels. If more than 5 would be set, all file-based labels
are skipped.
This commit is contained in:
Luca Boccassi
2026-03-26 15:36:43 +00:00
committed by GitHub
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1,6 +1,7 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
# vi: sw=2 ts=2 et:
changed-files-labels-limit: 5
analyze:
- changed-files:
- any-glob-to-any-file: 'src/analyze/*'
+1 -1
View File
@@ -36,7 +36,7 @@ jobs:
persist-credentials: false
- name: Label PR based on policy in labeler.yml
uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b
uses: actions/labeler@c5dadc2a45784a4b6adfcd20fea3465da3a5f904
if: startsWith(github.event_name, 'pull_request') && github.base_ref == 'main' && github.event.action != 'closed'
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"