Skip to content

Commit

Permalink
Fix URL construction in get-issues for accurate pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
activus-d committed Dec 16, 2024
1 parent 6958dce commit 54eabe8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export async function getIssuesData(): Promise<IssuesResponse> {
const labels: string[] = [];
let page = 1;
let hasMore = true;
const url = `https://api.github.com/repos/${owner}/${repo}/issues?state=open&per_page=100&page=${page}`;

while (hasMore) {
const url = `https://api.github.com/repos/${owner}/${repo}/issues?state=open&per_page=100&page=${page}`;
const res = await fetchData(owner, repo, url);
const data = await res.json();

Expand Down

0 comments on commit 54eabe8

Please sign in to comment.