Skip to content

Commit

Permalink
Updated as per review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nbhoski committed Aug 14, 2024
1 parent e905eca commit 6d7b7f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/buildSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export function writeSummary(taskSummaryTableRows: string[][]) {
}

export function getSummaryRows(buildSummary: string): any[] {
const rows = JSON.parse(buildSummary).map((t: { name: any; failed: { toString: () => any; }; skipped: { toString: () => any; }; description: any; duration: { toString: () => any; }; }) => {
if (t.failed.toString() === 'true') {
const rows = JSON.parse(buildSummary).map(t => {
if (t.failed) {
return [t.name, '🔴 Failed', t.description, t.duration.toString()];
} else if (t.skipped.toString() === 'true') {
} else if (t.skipped) {
return [t.name, '🔵 Skipped', t.description, t.duration.toString()];
} else {
return [t.name, '🟢 Success', t.description, t.duration.toString()];
Expand Down

0 comments on commit 6d7b7f6

Please sign in to comment.