From b4ecbee1f847461e9264556af0db6a203b519101 Mon Sep 17 00:00:00 2001 From: Teuz <60600374+teociaps@users.noreply.github.com> Date: Thu, 16 Apr 2026 22:05:37 +0200 Subject: [PATCH] Add Dependabot auto-merge workflow This workflow automatically approves and merges Dependabot pull requests. --- .github/workflows/dependabot-auto-merge | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/dependabot-auto-merge diff --git a/.github/workflows/dependabot-auto-merge b/.github/workflows/dependabot-auto-merge new file mode 100644 index 0000000..970c927 --- /dev/null +++ b/.github/workflows/dependabot-auto-merge @@ -0,0 +1,23 @@ +name: Dependabot Auto Merge + +on: + pull_request_target: + +permissions: + pull-requests: write + contents: write + +jobs: + dependabot-auto-merge: + runs-on: ubuntu-latest + if: github.actor == 'dependabot[bot]' + steps: + - name: Approve PR + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh pr review "${{ github.event.pull_request.number }}" --approve + + - name: Enable auto-merge (squash) + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh pr merge "${{ github.event.pull_request.number }}" --auto --squash