name: "Pull Request Labeler"

on:
  - pull_request_target

jobs:
  labeler:
    if: ${{ github.event.pull_request.user.login != 'dependabot[bot]' }} && ${{ github.event.pull_request.user.login != 'pre-commit-ci[bot]' }}
    permissions:
      contents: read
      pull-requests: write
    runs-on: ubuntu-latest
    steps:
    - uses: actions/labeler@634933edcd8ababfe52f92936142cc22ac488b1b  # v6.0.1
      with:
        repo-token: ${{ secrets.GITHUB_TOKEN }}
        sync-labels: true
