fix: release-pr leaves a stale changie/release PR open when the unreleased fragments drop to zero

Đang mở
#109 0 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ó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, go, yaml
Lĩnh vực
build-system, ci-cd

Hướng nghiên cứu

Start with .github/workflows/release-pr.yml lines 35-37 and 85-98 to see how the batch step output gates the release PR step, then look at the release:batch target in Taskfile.yml near line 999. The new close target needs to be a task target, as TestWorkflowRunBodiesInvokeTask in internal/upgrade/taskfile_shape_test.go requires. Done means an open changie/release PR is closed with an explanatory comment when there are no fragments, and the shape tests and docs/RELEASE-PROCEDURES.md §4 are updated.

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

Mô tả

area:ci bug priority:low
What happens

When .changes/unreleased/ has no fragments, task release:batch exits 0 with no version output, and the "Open or update the release PR" step is skipped. Nothing closes an already-open changie/release PR. Sequence: run R1 updates the PR; the maintainer merges the previous version, or the fragments are reverted (push P2); run R2 sees zero fragments and does nothing. The PR that R1 left keeps its mergeable-looking title chore(main): release vX.Y.Z. concurrency uses cancel-in-progress: false, so R1 still finishes after P2.

What you expected instead

In the zero-fragment path, any open changie/release PR is closed (with the App token) with a comment saying why.

Steps to reproduce

Open a release PR, then remove the fragments on main by revert. release-pr runs and leaves the PR open.

Version

main at d384473e

Platform

GitHub Actions

Evidence
  • .github/workflows/release-pr.yml:85-98 (if: steps.batch.outputs.version != ''), :35-37
  • Taskfile.yml:999 (release:batch)
  • internal/upgrade/taskfile_shape_test.go:1381 (TestWorkflowRunBodiesInvokeTask: the close must be a task target)
Acceptance criteria
  • A new Taskfile target closes an open changie/release PR. The workflow calls it only when version is empty.
  • The shape tests cover the new step and token.
  • docs/RELEASE-PROCEDURES.md §4 mentions the behavior.

Source (GSD planning files, archived at d384473e): .planning/todos/pending/2026-10-17-close-a-stale-changie-release-pr-in-the-zero-fragment-path-w.md


🤖 Generated with Claude Code

https://claude.ai/code/session_01UNqdnC3q6U362BvyfxuKCF

Ngôn ngữ chính
Go
Star
0
Fork
0
Merge trung bình
5 giờ 16 phút
Pull request đã merge (30 ngày)
107

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 seanb4t/codegraph-go

Tất cả issue của seanb4t/codegraph-go

Issue tương tự

Thêm issue về Go

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.