| … | … | @@ -935,6 +953,15 @@ const pullRequest = (repo: string, input: Readonly<Record<string, unknown>>) => | |
| 958 | + | const pr = pullRequest(sample.repo, { url }); | |
| 959 | + | const seeded = sample.testCase.setup.world?.linkedPullRequests?.find( | |
| 960 | + | ({ number }) => number === pr.number, | |
| 961 | + | ); | |
🟢 Low mcp-tool-use/run.ts:959
A linked PR from another repository with the same number inherits the seeded PR's state and title, so unlink_pull_requests({states:["merged"]}) can delete an unrelated open link. linkedEntry matches only number; match repository as well.
✅ Resolved in 9bdf3a6ad1a02758b6da9d69298f2bb01261d454
Note
Written by claude-opus-5-5 on behalf of Maria
Fixed in 9bdf3a6ad1: seeded state applies only to links in the case's own repository.
| … | … | @@ -989,6 +1016,24 @@ const t3Default = (sample: Sample, name: string, input: Readonly<Record<string, | |
| 1027 | + | unlinked: [...groups].map(([state, entries]) => ({ | |
| 1028 | + | host: "github.com", | |
| 1029 | + | repository: sample.repo, | |
| 1030 | + | state, | |
🟢 Low mcp-tool-use/run.ts:1025
In cross-repository cases, unlink_pull_requests removes the linked URL but reports it under sample.repo instead of the linked PR’s repository, so the result identifies the wrong repository. Group entries by repository and state, then report the repository from each group.
✅ Resolved in 9bdf3a6ad1a02758b6da9d69298f2bb01261d454
Note
Written by claude-opus-5-5 on behalf of Maria
Fixed in 9bdf3a6ad1: the mock groups by repository and state and reports each group's own repository.