From cfd2bd010e70813d631e4c2b6d92f3c2f6b9ba5b Mon Sep 17 00:00:00 2001 From: Jasmin <4738799+jaeilers@users.noreply.github.com> Date: Tue, 12 May 2026 21:13:29 +0200 Subject: [PATCH] feat: Enable auto merge for dependabot PRs --- .github/workflows/ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a0ba44..429ad40 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,3 +38,20 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} files: ${{join(fromJSON(steps.coverage-files.outputs.files), ',')}} + + dependabot-auto-merge: + runs-on: ubuntu-latest + needs: run-tests + if: github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' + permissions: + contents: write + pull-requests: write + env: + PR_URL: ${{ github.event.pull_request.html_url }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - name: Approve PR + run: gh pr review --approve "$PR_URL" + + - name: Enable auto merge + run: gh pr merge --auto --merge "$PR_URL"