name: 'Assign Reviewers'
on:
  # pull_request_target is suggested for projects where pull requests will be
  # made from forked repositories. If pull_request is used in these cases,
  # the github token will not have sufficient permission to update the PR.
  pull_request_target:

permissions:
  contents: read
  pull-requests: write

jobs:
  assign:
    runs-on: ubuntu-latest
    name: Assign Reviewers
    steps:
      - uses: dyladan/component-owners@main
        with:
          assign-owners: "false"
          request-owner-reviews: "true"
