fix: pass repositoryUrl to PR task picker#1938
Conversation
Greptile SummaryThis PR fixes the "From Pull Request" picker in the create-task modal, which was showing no PRs because
Confidence Score: 5/5Safe to merge — the change is a minimal, targeted fix that aligns the inline picker with the established pattern used elsewhere in the codebase. The single-line addition forwards No files require special attention.
|
| Filename | Overview |
|---|---|
| src/renderer/features/tasks/components/inline-pr-selector.tsx | One-line fix: adds repositoryUrl to the listPullRequests options so the backend filters by the correct repository instead of falling back to a project-wide remote scan. |
Sequence Diagram
sequenceDiagram
participant UI as InlinePrSelector
participant RQ as React Query
participant IPC as rpc.pullRequests
participant SVC as PrQueryService
UI->>RQ: "useQuery (enabled: !!projectId && !!repositoryUrl)"
RQ->>IPC: "listPullRequests(projectId, { repositoryUrl, filters, limit, offset })"
Note over IPC,SVC: repositoryUrl is now forwarded (was missing before)
IPC->>SVC: listPullRequests(projectId, options)
alt options.repositoryUrl provided (after fix)
SVC-->>IPC: "filter pullRequests WHERE repositoryUrl = options.repositoryUrl"
else no repositoryUrl (old behaviour)
SVC->>SVC: query projectRemotes for projectId
SVC-->>IPC: filter pullRequests WHERE repositoryUrl IN (all remotes)
end
IPC-->>RQ: "{ prs: [...] }"
RQ-->>UI: render PR list
Reviews (1): Last reviewed commit: "fix: pass repository url to PR task pick..." | Re-trigger Greptile
issue:
fix: