From 61d1d8e05785f5d5c6450d3442c234ac139f4ee4 Mon Sep 17 00:00:00 2001 From: Tinker Agora <314183062+tinkeragora@users.noreply.github.com> Date: Tue, 22 Sep 2026 04:11:00 +0800 Subject: [PATCH] chore(ci): auto-merge dependabot PRs --- .github/workflows/dependabot-automerge.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/dependabot-automerge.yml diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml new file mode 100644 index 0000000..351491d --- /dev/null +++ b/.github/workflows/dependabot-automerge.yml @@ -0,0 +1,17 @@ +name: dependabot-automerge +on: + pull_request_target: + types: [opened, synchronize, reopened, ready_for_review] +permissions: + pull-requests: write + contents: write +jobs: + automerge: + if: github.actor == 'dependabot[bot]' + runs-on: ubuntu-latest + steps: + - name: Enable auto-merge (squash) + run: gh pr merge --auto --squash "$PR_URL" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PR_URL: ${{ github.event.pull_request.html_url }}