Skip to content

Commit

Permalink
refactor analyze.ts and comment.ts to enhance output formatting and i…
Browse files Browse the repository at this point in the history
…mprove readability
  • Loading branch information
DE7924 committed Dec 12, 2024
1 parent b80379b commit 08e29c8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/scripts/analyze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const analyze = async (): Promise<stepResponse> => {
for (const { label, command } of results) {
const result = await runCommand(command, label);
if (result) {
commentBody += `${failedEmoji} - ${label}\n`;
commentBody += `${failedEmoji} <details><summary>${label}</summary>${result}</details>\n`;
errorMessages += `${result}\n`;
} else {
commentBody += `${passedEmoji} - ${label}\n`;
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export const comment = async (
try {
const commentBody = `
## PR Checks Complete\n
${analyzeStr?.output}\n
${analyzeStr?.output}
${codeFormattingStr?.output}
${testingStr?.output}`;
// ## Coverage = ${coverageStr?.output}\n`
Expand Down

0 comments on commit 08e29c8

Please sign in to comment.