Route task PR queries by upstream source (#5176)

* Route task PR queries by upstream source

Implements the routing described in docs/tasks-pr-upstream-source.md so task PR and issue queries stay scoped to the selected source.

* rm design doc
This commit is contained in:
Jinjing
2026-06-11 12:54:07 -07:00
committed by Jinwoo-H
parent a2ab6220f7
commit b60b8ed9f6
6 changed files with 308 additions and 52 deletions
+5
View File
@@ -1637,6 +1637,11 @@ export type ListWorkItemsResult<T> = {
sources: {
issues: GitHubOwnerRepo | null
prs: GitHubOwnerRepo | null
/** Raw `origin` remote resolved for this repo, independent of the
* user's preference. Required-nullable so the renderer can compare raw
* remote candidates without inferring origin from the effective PR
* source. */
originCandidate: GitHubOwnerRepo | null
/** Raw `upstream` remote resolved for this repo, independent of the
* user's preference. Present so the renderer's issue-source selector
* can always decide whether to render (upstream exists & differs from