From ee9da9ff87dfcc8aac7b1ab99dca05fd25bb18db Mon Sep 17 00:00:00 2001 From: Keyrxng <106303466+Keyrxng@users.noreply.github.com> Date: Mon, 19 Aug 2024 12:11:56 +0100 Subject: [PATCH] chore: paginate devpool issues --- src/home/fetch-github/fetch-issues-preview.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/home/fetch-github/fetch-issues-preview.ts b/src/home/fetch-github/fetch-issues-preview.ts index 08459292..b2c6cccc 100644 --- a/src/home/fetch-github/fetch-issues-preview.ts +++ b/src/home/fetch-github/fetch-issues-preview.ts @@ -48,7 +48,7 @@ export async function fetchIssuePreviews(): Promise { hasPrivateRepoAccess = await checkPrivateRepoAccess(); // Fetch issues from public repository - const { data: publicResponse } = await octokit.issues.listForRepo({ + const publicResponse = await octokit.paginate(octokit.issues.listForRepo, { owner: "ubiquity", repo: "devpool-directory", state: "open", @@ -81,7 +81,7 @@ export async function fetchIssuePreviews(): Promise { return tasks; async function fetchPrivateIssues(publicIssues: GitHubIssue[]) { - const { data: privateResponse } = await octokit.issues.listForRepo({ + const privateResponse = await octokit.paginate(octokit.issues.listForRepo, { owner: "ubiquity", repo: "devpool-directory-private", state: "open",