File tree Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Expand file tree Collapse file tree 1 file changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -33,19 +33,27 @@ function formatDuration(duration: number) {
3333}
3434
3535function createMessage ( ecosystemReports : Record < string , EcosystemReport > ) {
36- let mrkdwn = "Package manager report\n" ;
36+ let mrkdwn = "## Package manager report\n \n" ;
3737
38+ mrkdwn += "| OS | npm | yarn | pnpm |\n" ;
39+ mrkdwn += "|----|-----|------|------|\n" ;
3840 for ( const [ os , report ] of Object . entries ( ecosystemReports ) ) {
39- mrkdwn += `*${ os } *\n` ;
40- mrkdwn += ` *npm*: exit code: ${ report . npm . exitCode } , duration: ${
41+ mrkdwn += `| ${ os } | ` ;
42+ mrkdwn += `${
43+ report . npm . exitCode === 0 ? "✅" : "❌"
44+ } code: ${ report . npm . exitCode } , duration: ${
4145 formatDuration ( report . npm . duration )
42- } \n`;
43- mrkdwn += ` *yarn*: exit code: ${ report . yarn . exitCode } , duration: ${
46+ } | `;
47+ mrkdwn += `${
48+ report . yarn . exitCode === 0 ? "✅" : "❌"
49+ } code: ${ report . yarn . exitCode } , duration: ${
4450 formatDuration ( report . yarn . duration )
45- } \n`;
46- mrkdwn += ` *pnpm*: exit code: ${ report . pnpm . exitCode } , duration: ${
51+ } | `;
52+ mrkdwn += `${
53+ report . npm . exitCode === 0 ? "✅" : "❌"
54+ } code: ${ report . pnpm . exitCode } , duration: ${
4755 formatDuration ( report . pnpm . duration )
48- } \n`;
56+ } | \n`;
4957 }
5058
5159 return [
You can’t perform that action at this time.
0 commit comments