From 312c5e87c52b82b7c5658342af79e04661fc48a6 Mon Sep 17 00:00:00 2001 From: Brendan Date: Sun, 20 Sep 2026 15:45:26 +0000 Subject: [PATCH] Fix automatic merge queue enqueueing --- .github/workflows/auto-merge.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-merge.yml b/.github/workflows/auto-merge.yml index e22832e..2c32c54 100644 --- a/.github/workflows/auto-merge.yml +++ b/.github/workflows/auto-merge.yml @@ -50,6 +50,15 @@ jobs: GH_TOKEN: ${{ github.token }} PR_NUMBER: ${{ github.event.workflow_run.pull_requests[0].number }} run: | - gh pr merge "$PR_NUMBER" \ - --repo "$GITHUB_REPOSITORY" \ - --merge + pr_node_id=$(gh api \ + "repos/$GITHUB_REPOSITORY/pulls/$PR_NUMBER" \ + --jq '.node_id') + + gh api graphql \ + -f query=' + mutation($pullRequestId: ID!) { + enqueuePullRequest(input: { pullRequestId: $pullRequestId }) { + mergeQueueEntry { id } + } + }' \ + -F pullRequestId="$pr_node_id"