message: Add automerging dependendabot
diff: name: Main
  -on: [push, pull_request]
  +on:
  + - push
  + - pull_request
  jobs:
  ci:
  name: CI
  @@ -26,3 +28,17 @@ jobs:
  yarn prettier --check '**/*'
  yarn lint
  yarn test
  + automerge:
  + name: AutoMerge
  + needs: ci
  + runs-on: ubuntu-latest
  + if: github.event_name == 'pull_request' && github.actor == 'dependabot[bot]'
  + steps:
  + - uses: actions/github-script@v3
  + with:
  + script: |
  + github.pulls.merge({
  + owner: context.payload.repository.owner.login,
  + repo: context.payload.repository.name,
  + pull_number: context.payload.pull_request.number
  + })
  