fix: release-pr leaves a stale changie/release PR open when the unreleased fragments drop to zero
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- github-actions, go, yaml
- 領域
- build-system, ci-cd
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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-37Taskfile.yml:999(release:batch)internal/upgrade/taskfile_shape_test.go:1381(TestWorkflowRunBodiesInvokeTask: the close must be atasktarget)
Acceptance criteria
- A new Taskfile target closes an open
changie/releasePR. The workflow calls it only whenversionis 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
- 主要言語
- Go
- スター
- 0
- フォーク
- 0
- 平均マージ
- 5時間 16分
- マージ済み PR(30日)
- 107
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
seanb4t/codegraph-go のほかの issue
-
area:indexer bug needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
seanb4t/codegraph-go#385 ·
メンテナーはふだん 1 日以内に返信
-
chore needs-triage
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
seanb4t/codegraph-go#380 ·
メンテナーはふだん 1 日以内に返信
-
chore needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
seanb4t/codegraph-go#379 ·
メンテナーはふだん 1 日以内に返信
-
chore needs-triage
難易度 1/5 1〜3時間 初心者へのやさしさ 84/100
seanb4t/codegraph-go#362 ·
メンテナーはふだん 1 日以内に返信
-
area:query bug priority:low spec-needed
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
seanb4t/codegraph-go#355 ·
メンテナーはふだん 1 日以内に返信
seanb4t/codegraph-go の issue をすべて見る
似ている issue
-
enhancement exporter/awskinesis needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
open-telemetry/opentelemetry-collector-contrib#53334 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
erigontech/erigon#26523 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
SocialGouv/iterion#3376 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
seaweedfs/seaweedfs#12740 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信