From ea50e654ab3539142377d6be06c7fd0ba4084673 Mon Sep 17 00:00:00 2001 From: Rushaway Date: Tue, 18 Aug 2026 14:03:33 +0200 Subject: [PATCH] ci: add Dependabot auto-merge workflow --- .github/workflows/dependabot-auto-merge.yml | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/dependabot-auto-merge.yml diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml new file mode 100644 index 0000000..cd5ebcc --- /dev/null +++ b/.github/workflows/dependabot-auto-merge.yml @@ -0,0 +1,25 @@ +name: Dependabot auto-merge + +on: + pull_request_target: + branches: + - master + - main + types: + - opened + +permissions: + pull-requests: write + contents: write + +jobs: + enableAutoMerge: + runs-on: ubuntu-latest + if: github.event.pull_request.user.login == 'dependabot[bot]' + steps: + - name: Enable auto-merge for Dependabot PRs + run: gh pr merge --auto --merge "$PR_URL" + env: + PR_URL: ${{ github.event.pull_request.html_url }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +