Skip to content

Commit d062f2b

Browse files
committed
Change analyses to analysis_kinds
1 parent c208f33 commit d062f2b

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

lib/status-report.js

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

lib/status-report.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/status-report.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export interface StatusReportBase {
9393
/** The name of the Actions event that triggered the workflow. */
9494
actions_event_name?: string;
9595
/** Comma-separated list of the kinds of analyses we are performing. */
96-
analyses?: string;
96+
analysis_kinds?: string;
9797
/** Analysis key, normally composed from the workflow path and job name. */
9898
analysis_key: string;
9999
/** Build mode, if specified. */
@@ -293,13 +293,13 @@ export async function createStatusReportBase(
293293
// We leave `analyses` empty if we don't have a `config`, so that we don't
294294
// accidentally report only `code-scanning` when we can't tell whether `code-quality`
295295
// is enabled or not.
296-
const analyses: AnalysisKind[] = [];
296+
const analysisKinds: AnalysisKind[] = [];
297297

298298
if (config !== undefined) {
299-
analyses.push(AnalysisKind.CodeScanning);
299+
analysisKinds.push(AnalysisKind.CodeScanning);
300300

301301
if (isCodeQualityEnabled(config)) {
302-
analyses.push(AnalysisKind.CodeQuality);
302+
analysisKinds.push(AnalysisKind.CodeQuality);
303303
}
304304
}
305305

@@ -309,7 +309,7 @@ export async function createStatusReportBase(
309309
action_ref: actionRef,
310310
action_started_at: actionStartedAt.toISOString(),
311311
action_version: getActionVersion(),
312-
analyses: analyses.join(","),
312+
analysis_kinds: analysisKinds.join(","),
313313
analysis_key,
314314
build_mode: config?.buildMode,
315315
commit_oid: commitOid,

0 commit comments

Comments
 (0)