From 65e0be52a5b55b10bb098f744ddec0b76e0f90d1 Mon Sep 17 00:00:00 2001 From: Ralph Khreish <35776126+Crunchyman-ralph@users.noreply.github.com> Date: Thu, 14 Aug 2025 00:08:52 +0200 Subject: [PATCH] chore: run format --- .github/scripts/auto-close-duplicates.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/scripts/auto-close-duplicates.mjs b/.github/scripts/auto-close-duplicates.mjs index 5e7cf157..cf730a8c 100644 --- a/.github/scripts/auto-close-duplicates.mjs +++ b/.github/scripts/auto-close-duplicates.mjs @@ -84,7 +84,7 @@ async function autoCloseDuplicates() { const MAX_PAGES = 50; // Increase limit for larger repos let foundRecentIssue = false; - + while (true) { const pageIssues = await githubRequest( `/repos/${owner}/${repo}/issues?state=open&per_page=${perPage}&page=${page}&sort=created&direction=desc`, @@ -99,13 +99,13 @@ async function autoCloseDuplicates() { ); allIssues.push(...oldEnoughIssues); - + // If all issues on this page are newer than 3 days, we can stop if (oldEnoughIssues.length === 0 && page === 1) { foundRecentIssue = true; break; } - + // If we found some old issues but not all, continue to next page // as there might be more old issues page++;