diff --git a/src/main.ts b/src/main.ts index 7e032c8..794e217 100644 --- a/src/main.ts +++ b/src/main.ts @@ -51,6 +51,12 @@ async function runInCI( const queries = buildQueries(allResults, config); + // Align PR comment total with the actual queries sent to the site API + reportContext.queryStats = Object.freeze({ + ...reportContext.queryStats, + total: queries.length, + }); + // POST to Site API first so we get the run ID for the PR comment link let runId: string | null = null; if (siteApiEndpoint) {