You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add tools to enable/disable pull request auto-merge #1
The MCP server exposes merge_pull_request (an immediate merge) but provides no way to enable or disable GitHub's pull request auto-merge (the GraphQL enablePullRequestAutoMerge / disablePullRequestAutoMerge mutations).
For agent workflows this is a real gap: an agent that prepares a PR and wants it to merge once required checks pass has only two options today — merge immediately (bypassing checks that are still running) or leave the PR open for a human to merge by hand. Auto-merge is exactly the mechanism designed for "merge when green", and it is unreachable through the server.
Request
Add tools (or a method on an existing PR write tool) to:
Enable auto-merge for a PR, with merge method (merge/squash/rebase) and optional commit headline/body, mirroring the GraphQL mutation inputs.
Disable auto-merge for a PR.
Ideally, surface whether auto-merge is enabled (and its configured method) in pull_request_read output.
Context
Encountered while running a series of test-only PRs through the Muse GitHub connector: the intent was "set auto-merge and let them land as checks pass"; the only available path was an immediate squash merge via merge_pull_request.
Filed in this fork (upstream filing was not possible through the connector — the Muse GitHub App is not installed on the upstream repo) as the working issue for a planned contribution.
Implemented and submitted upstream: github#3926 (Fixes upstream github#2411). Branch: feat/pull-request-auto-merge-tools. Closing this fork tracker in favor of the upstream PR.
Activity
plthomasva commentedon Nov 22, 2026
Implemented and submitted upstream: github#3926 (Fixes upstream github#2411). Branch: feat/pull-request-auto-merge-tools. Closing this fork tracker in favor of the upstream PR.