From 9f78fd7dd69b2e4e1dbfcfb6e730917521e1396f Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Wed, 10 Sep 2025 23:55:45 -0700 Subject: [PATCH] runner: newFiles calc was slightly wrong --- scripts/runner.node.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/runner.node.mjs b/scripts/runner.node.mjs index dad9158399..b474318884 100755 --- a/scripts/runner.node.mjs +++ b/scripts/runner.node.mjs @@ -201,12 +201,12 @@ if (isBuildkite) { const doc = await res.json(); console.log(`-> page ${i}, found ${doc.length} items`); if (doc.length === 0) break; - if (doc.length < per_page) break; for (const { filename, status } of doc) { prFileCount += 1; if (status !== "added") continue; newFiles.push(filename); } + if (doc.length < per_page) break; } console.log(`- PR ${process.env.BUILDKITE_PULL_REQUEST}, ${prFileCount} files, ${newFiles.length} new files`); } catch (e) {