Merge pull request #22 from pullfrog/issue-14-summary-table-local-cli

feat(CLI): Using `table()` in `summaryTable()` when not running in CI
This commit is contained in:
Colin McDonnell
2026-01-12 13:33:35 -08:00
committed by GitHub
2 changed files with 6 additions and 2 deletions
+2 -1
View File
@@ -91332,7 +91332,8 @@ async function summaryTable(rows, options) {
core.info(`
${title}`);
}
const tableText = formattedRows.map((row) => row.map((cell) => cell.data).join(" | ")).join("\n");
const tableData = formattedRows.map((row) => row.map((cell) => cell.data));
const tableText = isGitHubActions ? tableData.map((row) => row.join(" | ")).join("\n") : (0, import_table.table)(tableData);
core.info(`
${tableText}
`);
+4 -1
View File
@@ -178,7 +178,10 @@ async function summaryTable(
if (title) {
core.info(`\n${title}`);
}
const tableText = formattedRows.map((row) => row.map((cell) => cell.data).join(" | ")).join("\n");
const tableData = formattedRows.map((row) => row.map((cell) => cell.data));
const tableText = isGitHubActions
? tableData.map((row) => row.join(" | ")).join("\n")
: table(tableData);
core.info(`\n${tableText}\n`);
}