name: Automatic pull request approvals
on:
  pull_request_target:
    type: ['opened', 'reopened', 'synchronize', 'ready_for_review']
  check_suite:
    type: ['completed']
jobs:
  auto-approve:
    runs-on: ubuntu-latest
    if: >
      github.event.pull_request.draft == false && (
        github.event.action == 'opened' ||
        github.event.action == 'reopened' ||
        github.event.action == 'synchronize'
      ) && (
        github.actor == 'dependabot[bot]' ||
        github.actor == 'dependabot-preview[bot]' ||
        github.actor == 'jaqx0r'
      )
    steps:
      - uses: "actions/github-script@v3"
        with:
          github-token: ${{ github.token }}
          script: |
            await github.pulls.createReview({
              event: "APPROVE",
              owner: context.repo.owner,
              pull_number: context.payload.pull_request.number,
              repo: context.repo.repo,
            })

name: Automatic pull request approvals
on:
  pull_request_target:
    type: ['opened', 'reopened', 'synchronize', 'ready_for_review']
  check_suite:
    type: ['completed']
jobs:
  auto-approve:
    runs-on: ubuntu-latest
    if: >
      github.event.pull_request.draft == false && (
        github.event.action == 'opened' ||
        github.event.action == 'reopened' ||
        github.event.action == 'synchronize'
      ) && (
        github.actor == 'dependabot[bot]' ||
        github.actor == 'jaqx0r'
      )
    steps:
      - uses: "actions/github-script@v3"
        with:
          github-token: ${{ github.token }}
          script: |
            await github.pulls.createReview({
              event: "APPROVE",
              owner: context.repo.owner,
              pull_number: context.payload.pull_request.number,
              repo: context.repo.repo,
            })

Remove dependabot-review from the autoapprove list.
Remove dependabot-review from the autoapprove list.
