Add merge queue support to pull request tools (enqueue, dequeue, queue status)
Los mantenedores suelen responder en 2 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 52/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- go, graphql
- Área
- api, backend-api-design
Línea de trabajo
Start by reading the existing pull request tool definitions and their GraphQL request patterns, then check how pull_request_read exposes PR data. Implement the two queue mutations and the status read using the fields listed in the issue. Done means all three operations return the specified queue data, including a clean null when no queue exists; the issue does not name specific files or tests.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the feature or problem you'd like to solve
There is no way to interact with a branch's merge queue through the MCP server.
merge_pull_request calls the REST merge endpoint. On a base branch protected by a merge queue ruleset, GitHub rejects that call: the only supported path is to enqueue the pull request and let the queue merge it. Today an MCP client has to fall back to gh pr merge --auto or raw GraphQL for that step, which breaks the MCP-first workflow.
This request is intentionally separate from auto-merge (#2411). Auto-merge is a per-PR flag that merges once requirements pass. A merge queue is a branch-level mechanism with its own queue entries, ordering, and state. They use different GraphQL mutations and should be modelled as different tools, even though a client may use both.
Proposed solution
Add merge queue support to the pull_requests toolset:
-
enqueue_pull_request(write), wrappingenqueuePullRequestowner,repo,pullNumber(required)jump(optional, boolean): place the entry at the front of the queueexpectedHeadSha(optional): maps toexpectedHeadOid, mirrors the existingmerge_pull_requestsafety parameter- Returns the created merge queue entry: position, state, enqueued time, and the
solo/jumpflags
-
dequeue_pull_request(write), wrappingdequeuePullRequestowner,repo,pullNumber(required)- Returns the removed entry
-
get_merge_queue_statusmethod onpull_request_read(read), exposing the PR'smergeQueueEntry- Returns whether the PR is queued, its position, state (
QUEUED,AWAITING_CHECKS,LOCKED,MERGEABLE,UNMERGEABLE), and the estimated time to merge if available - Returns
nullcleanly when the base branch has no merge queue, so clients can decide betweenmerge_pull_requestandenqueue_pull_request
- Returns whether the PR is queued, its position, state (
Benefits: agents can complete the full PR lifecycle on repositories that require a merge queue without leaving MCP, and can report queue progress back to the user.
Example prompts or workflows (for tools/toolsets only)
- "Add PR #XXX to the merge queue once it is approved."
- "Is PR #XXX in the merge queue? What position is it in and is anything blocking it?"
- "Remove PR #XXX from the merge queue, I need to push a fix first."
- "For every approved PR of mine in this repo, enqueue it if the base branch uses a merge queue, otherwise merge it directly."
- "This hotfix is urgent, enqueue it at the front of the queue."
Additional context
- The two mutations are the same ones used by the
ghCLI and the web UI, so the semantics are already familiar to users. merge_pull_requestcould additionally return a clearer error when the base branch requires a merge queue, pointing the client toenqueue_pull_request. That is a nice-to-have on top of the three items above.- Merge queue state is currently readable only indirectly, via the
merge_queuerule in governance ruleset output. That tells a client the queue exists, but not whether a given PR is in it.
- Lenguaje dominante
- Go
- Estrellas
- 34.2k
- Forks
- 5.3k
- Merge medio
- 5 d 18 h
- PR fusionados (30 d)
- 13
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de github/github-mcp-server
-
update_issue_labels is annotated destructiveHint: false but replaces (removes) existing labelsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
github/github-mcp-server#3760 ·
Los mantenedores suelen responder en 2 días
-
docs(install-claude): "environment variable" examples put the PAT in argv and the saved configAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
github/github-mcp-server#3758 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
github/github-mcp-server#3729 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
github/github-mcp-server#3722 ·
Los mantenedores suelen responder en 2 días
-
Insiders Feedback: PR created UI doesn't link to the PRPosiblemente ocupada @genius-0963 la tomó hace 5 días. Abiertobug insiders user-experience
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
github/github-mcp-server#3658 ·
Los mantenedores suelen responder en 2 días
Todos los issues de github/github-mcp-server
Issues similares
-
Update the mise toolsAbiertoready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
hexlet-basics/hexlet-basics#962 ·
Los mantenedores suelen responder en 1 día
-
imapproxy closeForMaintenance grace timer calls clientConn.Close() before closeMaintenanceTransportPosiblemente ocupada @dejanstrbac la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Renovate health check failedAbiertorenovate-health
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Netcracker/qubership-network-latency-exporter#267 ·
Los mantenedores suelen responder en 1 día
-
Network capture does not workPosiblemente ocupada @KSpaceer la tomó hoy. Abiertokind/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
aquasecurity/tracee#5395 ·