Skip to content

Commit 25d2596

Browse files
committed
Add query-filters to the init complete status report
1 parent a6c4760 commit 25d2596

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/init-action.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ interface InitWithConfigStatusReport extends InitStatusReport {
9393
trap_cache_download_size_bytes: number;
9494
/** Time taken to download TRAP caches, in milliseconds. */
9595
trap_cache_download_duration_ms: number;
96+
/** Stringified JSON object representing a query-filters, from the 'query-filters' config field. **/
97+
query_filters: string;
9698
}
9799

98100
/** Fields of the init status report populated when the tools source is `download`. */
@@ -207,6 +209,7 @@ async function sendCompletedStatusReport(
207209
await getTotalCacheSize(config.trapCaches, logger),
208210
),
209211
trap_cache_download_duration_ms: Math.round(config.trapCacheDownloadTime),
212+
query_filters: JSON.stringify(config.originalUserInput["query-filters"]),
210213
};
211214
await sendStatusReport({
212215
...initWithConfigStatusReport,

0 commit comments

Comments
 (0)