Skip to content

Commit

Permalink
chore: enable auto-commit for dependabot pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Nr18 committed Jul 20, 2023
1 parent dbb323c commit 0e7d79b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: "Dependabot Automerge"
on:
pull_request:

jobs:
worker:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: automerge
uses: actions/[email protected]
with:
github-token: ${{github.token}}
script: |
github.pullRequests.createReview({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
pull_number: context.payload.pull_request.number,
event: 'APPROVE'
})
github.pullRequests.merge({
owner: context.payload.repository.owner.login,
repo: context.payload.repository.name,
pull_number: context.payload.pull_request.number
})

0 comments on commit 0e7d79b

Please sign in to comment.