Skip to content

Commit a005206

Browse files
committed
Convert status report comments to documentation
1 parent ff33f03 commit a005206

7 files changed

Lines changed: 62 additions & 59 deletions

File tree

lib/init-action.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/init-action.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/actions-util.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -488,37 +488,37 @@ type ActionName = "init" | "autobuild" | "finish" | "upload-sarif";
488488
type ActionStatus = "starting" | "aborted" | "success" | "failure";
489489

490490
export interface StatusReportBase {
491-
// ID of the workflow run containing the action run
491+
/** ID of the workflow run containing the action run. */
492492
workflow_run_id: number;
493-
// Workflow name. Converted to analysis_name further down the pipeline.
493+
/** Workflow name. Converted to analysis_name further down the pipeline.. */
494494
workflow_name: string;
495-
// Job name from the workflow
495+
/** Job name from the workflow. */
496496
job_name: string;
497-
// Analysis key, normally composed from the workflow path and job name
497+
/** Analysis key, normally composed from the workflow path and job name. */
498498
analysis_key: string;
499-
// Value of the matrix for this instantiation of the job
499+
/** Value of the matrix for this instantiation of the job. */
500500
matrix_vars?: string;
501-
// Commit oid that the workflow was triggered on
501+
/** Commit oid that the workflow was triggered on. */
502502
commit_oid: string;
503-
// Ref that the workflow was triggered on
503+
/** Ref that the workflow was triggered on. */
504504
ref: string;
505-
// Name of the action being executed
505+
/** Name of the action being executed. */
506506
action_name: ActionName;
507-
// Version of the action being executed, as a ref
507+
/** Version of the action being executed, as a ref. */
508508
action_ref?: string;
509-
// Version of the action being executed, as a commit oid
509+
/** Version of the action being executed, as a commit oid. */
510510
action_oid: string;
511-
// Time the first action started. Normally the init action
511+
/** Time the first action started. Normally the init action. */
512512
started_at: string;
513-
// Time this action started
513+
/** Time this action started. */
514514
action_started_at: string;
515-
// Time this action completed, or undefined if not yet completed
515+
/** Time this action completed, or undefined if not yet completed. */
516516
completed_at?: string;
517-
// State this action is currently in
517+
/** State this action is currently in. */
518518
status: ActionStatus;
519-
// Cause of the failure (or undefined if status is not failure)
519+
/** Cause of the failure (or undefined if status is not failure). */
520520
cause?: string;
521-
// Stack trace of the failure (or undefined if status is not failure)
521+
/** Stack trace of the failure (or undefined if status is not failure). */
522522
exception?: string;
523523
}
524524

0 commit comments

Comments
 (0)