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

Đang mở
#17,539 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, javascript
Lĩnh vực
ci-cd, devtools

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Shell
Star
22
Fork
2
Merge trung bình
2 giờ
Pull request đã merge (30 ngày)
960

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của melodic-software/claude-code-plugins

Tất cả issue của melodic-software/claude-code-plugins

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.