Skip to content

Commit

Permalink
chore: paginate devpool issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Keyrxng committed Aug 19, 2024
1 parent 803107b commit ee9da9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/home/fetch-github/fetch-issues-preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export async function fetchIssuePreviews(): Promise<TaskNoFull[]> {
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",
Expand Down Expand Up @@ -81,7 +81,7 @@ export async function fetchIssuePreviews(): Promise<TaskNoFull[]> {
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",
Expand Down

0 comments on commit ee9da9f

Please sign in to comment.