From c419b2a01cade9453814fc8cfdda3aca9599184c Mon Sep 17 00:00:00 2001 From: Jasmin Eilers <4738799+jaeilers@users.noreply.github.com> Date: Thu, 14 May 2026 10:06:53 +0200 Subject: [PATCH] feat: Enable automatically merging 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 01a09f5..20fab5e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,3 +29,20 @@ jobs: uses: ./.github/actions/code-coverage with: codecov-token: ${{ secrets.CODECOV_TOKEN }} + + dependabot-auto-merge: + runs-on: ubuntu-latest + needs: run-tests + if: github.event.pull_request.user.login == 'dependabot[bot]' && github.event_name == 'pull_request' + permissions: + contents: write + pull-requests: write + env: + PR_URL: ${{ github.event.pull_request.html_url }} + GH_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"