name: 'PR Automation'

on:
  pull_request_target:

jobs:
  triage:
    runs-on: ubuntu-latest
    steps:
      - name: Automatically label PR
        uses: actions/labeler@v3
        with:
          repo-token: '${{ secrets.GITHUB_TOKEN }}'
          sync-labels: true

      - name: Automatically assign reviewers
        if: ${{ github.event.action == 'opened' }}
        uses: kentaro-m/auto-assign-action@v1.1.2
