Add remaining post-actions to ActionName

This commit is contained in:
Michael B. Gale
2026-10-19 19:29:53 +01:00
parent c5913260b1
commit a4c1eb2b5f
2 changed files with 10 additions and 1 deletions

5
lib/entry-points.js generated
View File

@@ -171424,7 +171424,10 @@ function getAddressString(address) {
// src/status-report.ts
var ACTION_DISPLAY_NAMES = {
["finish" /* Analyze */]: "analyze",
["init-post" /* InitPost */]: "init post"
["analyze-post" /* AnalyzePost */]: "analyze post-action",
["init-post" /* InitPost */]: "init post",
["start-proxy-post" /* StartProxyPost */]: "start-proxy post-action",
["upload-sarif-post" /* UploadSarifPost */]: "upload-sarif post-action"
};
function getDisplayActionName(actionName) {
const displayName = ACTION_DISPLAY_NAMES[actionName];

View File

@@ -52,19 +52,25 @@ import {
export enum ActionName {
Analyze = "finish",
AnalyzePost = "analyze-post",
Autobuild = "autobuild",
Init = "init",
InitPost = "init-post",
ResolveEnvironment = "resolve-environment",
SetupCodeQL = "setup-codeql",
StartProxy = "start-proxy",
StartProxyPost = "start-proxy-post",
UploadSarif = "upload-sarif",
UploadSarifPost = "upload-sarif-post",
}
/** A partial mapping from `ActionName` to names for actions whose display name is not the `ActionName` value. */
export const ACTION_DISPLAY_NAMES: Partial<Record<ActionName, string>> = {
[ActionName.Analyze]: "analyze",
[ActionName.AnalyzePost]: "analyze post-action",
[ActionName.InitPost]: "init post",
[ActionName.StartProxyPost]: "start-proxy post-action",
[ActionName.UploadSarifPost]: "upload-sarif post-action",
};
/**