Skip to content

[bug] idd-close Step 1.55 checks the first merged PR that mentions the issue, which can be another issue's PR (found during #519) #533

Open

Description

@kiki830621

Problem

/idd-close 的 Step 1.55(merge 完整性檢查)要確認這張 issue 的 branch 內容都進了預設 branch。它用「已合併、內文提到 #N、而且在 issue 之後建立」的 PR 來找那條 branch 的 head。符合的 PR 不只一個時,它取第一個,其餘的不檢查。

第一個不一定是這張 issue 自己的 PR。另一張 issue 的 PR 只要在說明裡提到 #N(例如「剩下的小項記在 #N」),也會被算進去,而且排在前面。

實例(2026-11-13,#519 結案時):候選有兩個,#520(#508 的 PR,說明裡寫剩下的小項記在 #519)與 #530(#519 自己的 PR)。Step 1.55 檢查的是 #520 的 head,回報乾淨;#530 的 head 沒有被檢查。那次用手對 #530 的 head 再跑一次,也是乾淨。

skill 的文字要求「多筆命中時不得靜默取第一筆,印出有 N 筆候選再繼續」。印出筆數只讓執行的人知道有好幾個,沒有讓對的那一個被檢查到。follow-up issue 幾乎都會遇到這個情況:開它的那張 issue 的 PR 一定提到它。

Type

bug

Expected

符合的 PR 不只一個時,檢查到這張 issue 自己的 PR。兩個做法擇一:每一個候選都檢查,任何一個不乾淨就擋;或優先取 head branch 是 idd/<N>-…、或以 Refs #N 宣告的那一個。附一個檢查:兩個候選、第一個是只提到的 PR 時,被檢查的是另一個。

Actual

取第一個候選。它是別張 issue 的 PR 時,這張 issue 自己的 PR 沒有被檢查,結果仍然回報乾淨。

Impact

plugins/issue-driven-dev/skills/idd-close/SKILL.md 的 Step 1.55;比對規則的契約在 references/pr-issue-matching.md。

相關:#305(同一段的比對不精確,已修)、#375(同一段因為跳脫字元而沒有執行)、#494(同一段取預設 branch 的方式)。

Source: surfaced during /idd-close #519 — 結案檢查印出兩個候選、被檢查的是另一張 issue 的 PR,2026-11-13

Clarity Surface(idd-clarify run 2026-11-13T02:01:57Z, unattended)

Type Source Question for you Status
(none) — no issues detected passed

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions