From 25d25968e66b469dfda8287c27f6ee4629662644 Mon Sep 17 00:00:00 2001 From: Remco Vermeulen Date: Fri, 26 Jul 2024 16:34:48 -0700 Subject: [PATCH] Add query-filters to the init complete status report --- src/init-action.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/init-action.ts b/src/init-action.ts index 1b8ddfc9a..2e861483b 100644 --- a/src/init-action.ts +++ b/src/init-action.ts @@ -93,6 +93,8 @@ interface InitWithConfigStatusReport extends InitStatusReport { trap_cache_download_size_bytes: number; /** Time taken to download TRAP caches, in milliseconds. */ trap_cache_download_duration_ms: number; + /** Stringified JSON object representing a query-filters, from the 'query-filters' config field. **/ + query_filters: string; } /** Fields of the init status report populated when the tools source is `download`. */ @@ -207,6 +209,7 @@ async function sendCompletedStatusReport( await getTotalCacheSize(config.trapCaches, logger), ), trap_cache_download_duration_ms: Math.round(config.trapCacheDownloadTime), + query_filters: JSON.stringify(config.originalUserInput["query-filters"]), }; await sendStatusReport({ ...initWithConfigStatusReport,