Ruff: Fix Ruff FURB189 on bugfix #12282
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: PR Labeler | |
# run on pull_request_target because we need write access to the GItHub API | |
# don't run any code from PR here! | |
on: | |
pull_request_target: | |
types: | |
[opened, synchronize, reopened] | |
jobs: | |
labeler: | |
permissions: | |
contents: read | |
pull-requests: write | |
name: "Autolabeler" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/labeler@v5 | |
with: | |
repo-token: "${{ secrets.GITHUB_TOKEN }}" | |
sync-labels: true |