From bf03a386122a0797974fee869e75b9cc95c0a210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20St=C3=A4bler?= Date: Tue, 14 Apr 2026 13:40:53 +0200 Subject: [PATCH] Support merge queues on dependabot PRs From the `gh` cli docs: ``` gh pr merge --help Merge a pull request on GitHub. Without an argument, the pull request that belongs to the current branch is selected. When targeting a branch that requires a merge queue, no merge strategy is required. If required checks have not yet passed, auto-merge will be enabled. If required checks have passed, the pull request will be added to the merge queue. ``` --- .github/workflows/dependabot-auto-merge.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dependabot-auto-merge.yml b/.github/workflows/dependabot-auto-merge.yml index 5f3962a..6f19dd4 100644 --- a/.github/workflows/dependabot-auto-merge.yml +++ b/.github/workflows/dependabot-auto-merge.yml @@ -16,13 +16,13 @@ jobs: with: github-token: "${{ secrets.GITHUB_TOKEN }}" - - name: Enable auto-merge for minor and patch updates + - name: Enable merge for minor and patch updates if: | steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch' run: | - gh pr merge --auto --squash "$PR_URL" - gh pr comment "$PR_URL" --body "✅ Auto-merge enabled. This PR will merge automatically once all checks pass." + gh pr merge "$PR_URL" + gh pr comment "$PR_URL" --body "✅ Auto-merge enabled. This PR will merge automatically / added to merge queue, once all checks pass." env: PR_URL: ${{ github.event.pull_request.html_url }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}