Skip to content

Commit 08e29c8

Browse files
committed
refactor analyze.ts and comment.ts to enhance output formatting and improve readability
1 parent b80379b commit 08e29c8

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/scripts/analyze.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export const analyze = async (): Promise<stepResponse> => {
1414
for (const { label, command } of results) {
1515
const result = await runCommand(command, label);
1616
if (result) {
17-
commentBody += `${failedEmoji} - ${label}\n`;
17+
commentBody += `${failedEmoji} <details><summary>${label}</summary>${result}</details>\n`;
1818
errorMessages += `${result}\n`;
1919
} else {
2020
commentBody += `${passedEmoji} - ${label}\n`;

src/scripts/comment.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const comment = async (
1313
try {
1414
const commentBody = `
1515
## PR Checks Complete\n
16-
${analyzeStr?.output}\n
16+
${analyzeStr?.output}
1717
${codeFormattingStr?.output}
1818
${testingStr?.output}`;
1919
// ## Coverage = ${coverageStr?.output}\n`

0 commit comments

Comments
 (0)