diff --git a/index.js b/index.js index 172473e..6ea0592 100644 --- a/index.js +++ b/index.js @@ -27162,9 +27162,9 @@ var createJobSummary = async ({ appName, repoName, orgName, version_url, context [{ data: "Application" }, { data: appName }], [{ data: "Project" }, { data: repoName }], [{ data: "Organization" }, { data: orgName }], - [{ data: "Last commit" }, { data: lastCommit.id }], - [{ data: "Last commit message" }, { data: lastCommit.message }], + [{ data: "Last commit" }, { data: `${lastCommit.id}` }], [{ data: "Last commit author" }, { data: `@${lastCommit.author.username}` }], + [{ data: "Last commit message" }, { data: lastCommit.message }], [{ data: "Version URL" }, { data: `${version_url}` }] ]; await import_core.summary.addTable(tableData).write(); diff --git a/src/create-job-summary.ts b/src/create-job-summary.ts index e1c285b..ed3706f 100644 --- a/src/create-job-summary.ts +++ b/src/create-job-summary.ts @@ -13,13 +13,14 @@ export const createJobSummary = async ({appName, repoName, orgName, version_url, await summary.addRaw(`Deployed ${appName}!`); await summary.addEOL(); const lastCommit = getLastCommit(context); + const tableData = [ [{ data: 'Application'}, { data: appName}], [{ data: 'Project'}, { data: repoName}], [{ data: 'Organization'}, { data: orgName}], - [{ data: 'Last commit'}, { data: lastCommit.id}], - [{ data: 'Last commit message'}, { data: lastCommit.message}], + [{ data: 'Last commit'}, { data: `${lastCommit.id}`}], [{ data: 'Last commit author'}, { data: `@${lastCommit.author.username}` }], + [{ data: 'Last commit message'}, { data: lastCommit.message}], [{ data: 'Version URL' }, { data: `${version_url}` }], ] await summary.addTable(tableData).write();