Skip to content

Commit b4b4347

Browse files
authored
Fix secondary pr fetching. (#7670)
1 parent 8ef6b71 commit b4b4347

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/github/copilotPrWatcher.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ export class CopilotPRWatcher extends Disposable {
263263
const items: PullRequestModel[] = [];
264264
let hasMore = true;
265265
do {
266-
const prs = await folderManager.getPullRequests(PRType.Query, { fetchOnePagePerRepo: true, fetchNextPage: true }, query);
266+
const prs = await folderManager.getPullRequests(PRType.Query, { fetchOnePagePerRepo: true, fetchNextPage: !hasMore }, query);
267267
items.push(...prs.items);
268268
hasMore = prs.hasMorePages;
269269
} while (hasMore);

0 commit comments

Comments
 (0)