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",