From 149b4cfb6cb0fc717e8e8e9557d646ae45c1eab4 Mon Sep 17 00:00:00 2001 From: Jens Troeger Date: Tue, 7 Apr 2026 21:17:23 +1000 Subject: [PATCH] fix(ci): automatically merge Dependabot PRs upon approval again --- .github/workflows/dependabot-automerge.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dependabot-automerge.yaml b/.github/workflows/dependabot-automerge.yaml index a5a64613..faefd39b 100644 --- a/.github/workflows/dependabot-automerge.yaml +++ b/.github/workflows/dependabot-automerge.yaml @@ -1,5 +1,4 @@ -# Automatically merge Dependabot PRs upon approval by leaving -# a comment on Dependabot's pull-request. +# Automatically merge Dependabot PRs upon approval. name: Automerge Dependabot PR on: @@ -10,12 +9,11 @@ permissions: pull-requests: write jobs: - comment: + auto-merge: if: ${{ github.event.review.state == 'approved' && github.event.pull_request.user.login == 'dependabot[bot]' }} runs-on: ubuntu-latest steps: - name: Merge Dependabot PR - run: gh pr comment --body "@dependabot squash and merge" "$PR_URL" + run: gh pr merge --squash --delete-branch env: - PR_URL: ${{ github.event.pull_request.html_url }} GITHUB_TOKEN: ${{ secrets.DEPENDABOT_AUTOMERGE_TOKEN }}