pr-pipeline: issue lane opens a stack layer on an open blocker pull request

Abierto
#17,539 3 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
github-actions, javascript
Área
ci-cd, devtools

Línea de trabajo

Start with .github/scripts/work-resolve-issue/check-blockers.mjs and .github/scripts/work-resolve-issue/report-outcome.mjs, then read the linked decisions and refinement question on #15410. First run the sandbox test in melodic-software/pr-pipeline-sandbox to determine whether the lanes App token can create a stack through the stack API; the owner must decide the fallback if it cannot. Done means the decision is recorded and the issue lane behavior and tests match that outcome.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

needs-owner-decision needs-triage

Refs #15410

Problem

The issue lane opens its pull request on the default branch only (.github/scripts/work-resolve-issue/report-outcome.mjs), and .github/scripts/work-resolve-issue/check-blockers.mjs skips an issue while any blocker is still open. So an issue whose blocker already has an open pull request waits until that pull request merges, even though the lanes now accept a native stack layer whose stack base is main (#15400) and the merge lane is gaining a path that lands the bottom layer of such a stack (#15410).

What #15410 left out

The owner's decision on #15410 (option B, 2026-11-17) scoped that issue to the merge lane only and split issue-lane stacking out to this issue. Its second done-when line and refinement question 4 move here:

  • When the blocker has an open pull request, the issue lane builds on that pull request's branch and opens the new pull request as a stack layer on it.
  • The blocker's open pull request must pass the same trust checks as any lane input before the lane builds on it: same repository, a listed author or the lanes App, base main or a layer of a stack on main, and no do-not-merge.
  • Creating a stack needs the stack API that gh stack link calls, not the extension, in the runner.
  • A pull request opened into another branch before it joins a stack gets no branches: [main] workflows (ci-status) until a new event, so the lane must link the stack before or at pull request creation.
  • Unverified: whether a lanes App installation token can create a stack. Per the decision, this issue waits for a sandbox test of that in melodic-software/pr-pipeline-sandbox.

Refinement question 4 on #15410 recommended: if an App token cannot create a stack, skip the issue and keep agent-ready, so it re-fires once the blocker merges (check-blockers.mjs already skips and keeps agent-ready while a blocker is open). That recommendation is not decided; it is an open design point here.

Done when

  • A sandbox run in melodic-software/pr-pipeline-sandbox shows whether a lanes App installation token can create a native stack through the stack API, linked from this issue.
  • If it can: the issue lane opens a stacked layer on an open blocker pull request that passes the trust checks above, and still skips when it does not; tests cover both.
  • If it cannot: the outcome and the chosen fallback are recorded here, decided by the owner.
Lenguaje dominante
Shell
Estrellas
22
Forks
2
Merge medio
2 h
PR fusionados (30 d)
960

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de melodic-software/claude-code-plugins

Todos los issues de melodic-software/claude-code-plugins

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.