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

Aperta
#17,539 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github-actions, javascript
Ambito
ci-cd, devtools

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.
Lingua principale
Shell
Stelle
22
Fork
2
Merge medio
2h
PR unite (30g)
960

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di melodic-software/claude-code-plugins

Tutte le issue di melodic-software/claude-code-plugins

Issue simili

Altre issue su Shell/Bash

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.