Use comma-separated list
This commit is contained in:
parent
60465730fb
commit
2c235f1a60
7 changed files with 5 additions and 7 deletions
1
lib/init-action.js
generated
1
lib/init-action.js
generated
|
|
@ -82,7 +82,6 @@ async function sendCompletedStatusReport(startedAt, config, toolsDownloadDuratio
|
|||
const initWithConfigStatusReport = {
|
||||
...initStatusReport,
|
||||
disable_default_queries: disableDefaultQueries,
|
||||
languages,
|
||||
paths,
|
||||
paths_ignore: pathsIgnore,
|
||||
queries: queries.join(","),
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
2
lib/status-report.js
generated
2
lib/status-report.js
generated
|
|
@ -120,7 +120,7 @@ async function createStatusReportBase(actionName, status, actionStartedAt, confi
|
|||
logger.warning(`Could not determine the workflow event name: ${e}.`);
|
||||
}
|
||||
if (config) {
|
||||
statusReport.languages = config.languages.join(" ");
|
||||
statusReport.languages = config.languages.join(",");
|
||||
}
|
||||
if (diskInfo) {
|
||||
statusReport.runner_available_disk_space_bytes = diskInfo.numAvailableBytes;
|
||||
|
|
|
|||
2
lib/status-report.test.js
generated
2
lib/status-report.test.js
generated
|
|
@ -71,7 +71,7 @@ function setupEnvironmentAndStub(tmpDir) {
|
|||
t.is(statusReport.exception, "exception stack trace");
|
||||
t.is(statusReport.job_name, process.env["GITHUB_JOB"] || "");
|
||||
t.is(typeof statusReport.job_run_uuid, "string");
|
||||
t.is(statusReport.languages, "java swift");
|
||||
t.is(statusReport.languages, "java,swift");
|
||||
t.is(statusReport.ref, process.env["GITHUB_REF"]);
|
||||
t.is(statusReport.runner_available_disk_space_bytes, 100);
|
||||
t.is(statusReport.runner_image_version, process.env["ImageVersion"]);
|
||||
|
|
|
|||
|
|
@ -169,7 +169,6 @@ async function sendCompletedStatusReport(
|
|||
const initWithConfigStatusReport: InitWithConfigStatusReport = {
|
||||
...initStatusReport,
|
||||
disable_default_queries: disableDefaultQueries,
|
||||
languages,
|
||||
paths,
|
||||
paths_ignore: pathsIgnore,
|
||||
queries: queries.join(","),
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ test("createStatusReportBase", async (t) => {
|
|||
t.is(statusReport.exception, "exception stack trace");
|
||||
t.is(statusReport.job_name, process.env["GITHUB_JOB"] || "");
|
||||
t.is(typeof statusReport.job_run_uuid, "string");
|
||||
t.is(statusReport.languages, "java swift");
|
||||
t.is(statusReport.languages, "java,swift");
|
||||
t.is(statusReport.ref, process.env["GITHUB_REF"]!);
|
||||
t.is(statusReport.runner_available_disk_space_bytes, 100);
|
||||
t.is(statusReport.runner_image_version, process.env["ImageVersion"]);
|
||||
|
|
|
|||
|
|
@ -258,7 +258,7 @@ export async function createStatusReportBase(
|
|||
}
|
||||
|
||||
if (config) {
|
||||
statusReport.languages = config.languages.join(" ");
|
||||
statusReport.languages = config.languages.join(",");
|
||||
}
|
||||
|
||||
if (diskInfo) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue