Skip to content

Support merge queues for auto-merge#109

Open
MattIPv4 wants to merge 2 commits intomainfrom
MattIPv4/auto-merge-gql-auto
Open

Support merge queues for auto-merge#109
MattIPv4 wants to merge 2 commits intomainfrom
MattIPv4/auto-merge-gql-auto

Conversation

@MattIPv4
Copy link
Member

@MattIPv4 MattIPv4 commented Mar 4, 2026

Requesting fast-track as a fix.

https://github.com/nodejs/web-team/actions/runs/22677523835/job/65738267859#step:5:149

https://docs.github.com/en/graphql/reference/mutations#enqueuepullrequest

There is no REST API endpoint equivalent for this, from what I can tell.

@MattIPv4 MattIPv4 requested a review from a team as a code owner March 4, 2026 17:21
Copilot AI review requested due to automatic review settings March 4, 2026 17:21
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repo’s scheduled auto-merge workflow to support GitHub Merge Queues by enqueuing eligible PRs via the GitHub GraphQL API when merge-method: queue is selected.

Changes:

  • Add/adjust merge-method input to include queue and wire it into the composite action.
  • When merge-method is queue, enqueue the PR using the enqueuePullRequest GraphQL mutation instead of calling the REST merge endpoint.
  • Update the scheduled workflow to call the action with merge-method: queue.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
actions/auto-merge-prs/action.yml Adds queue support and switches to GraphQL enqueue when selected.
.github/workflows/auto-merge.yml Configures the scheduled job to use merge queue mode.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants