De-duplicate InitToolsDownloadFIelds definition

This commit is contained in:
Michael B. Gale
2025-10-16 19:03:46 +01:00
parent d02f50ee62
commit 2611d033d7
3 changed files with 12 additions and 20 deletions

View File

@@ -18,6 +18,7 @@ import { ToolsSource } from "./setup-codeql";
import {
ActionName,
InitStatusReport,
InitToolsDownloadFields,
createStatusReportBase,
getActionsStatus,
sendStatusReport,
@@ -35,16 +36,6 @@ import {
getErrorMessage,
} from "./util";
/** Fields of the init status report populated when the tools source is `download`. */
interface InitToolsDownloadFields {
/** Time taken to download the bundle, in milliseconds. */
tools_download_duration_ms?: number;
/**
* Whether the relevant tools dotcom feature flags have been misconfigured.
* Only populated if we attempt to determine the default version based on the dotcom feature flags. */
tools_feature_flags_valid?: boolean;
}
/**
* Helper function to send a full status report for this action.
*/