name: "Pull Request Labeler"

on:
  pull_request_target:

permissions:
  contents: read
  pull-requests: write

# NOTE: Do not check out/execute code from the PR since a read-write token is present due to pull_request_target
jobs:
  triage:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/labeler@v3
        with:
          repo-token: "${{ secrets.GITHUB_TOKEN }}"
          sync-labels: true
          configuration-path: .github/config/labeler-config.yml

name: "Pull Request Labeler"

on:
  pull_request_target:

permissions:
  contents: read
  pull-requests: write

# NOTE: Do not check out/execute code from the PR since a read-write token is present due to pull_request_target
jobs:
  triage:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/labeler@v3
        with:
          repo-token: "${{ secrets.GITHUB_TOKEN }}"
          # Do not sync labels as this reverts manually added "tests:hive" label.
          # Syncing labels requires that we define "components" labels.
          sync-labels: false
          configuration-path: .github/config/labeler-config.yml

Stop automated removal of `tests:hive` label
Stop automated removal of `tests:hive` label

This label should not be removed automatically.
We can revisit this later, if needed.
