Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/commands/utils/reporting.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { DangerResults } from "../../dsl/DangerResults"

export const markdownCode = (string: string): string => `
\`\`\`sh
\`\`\`
${string}
\`\`\`
`
Expand Down
3 changes: 2 additions & 1 deletion source/commands/utils/runDangerSubprocess.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ export const runDangerSubprocess = (
d(`Handling fail from subprocess`)
process.exitCode = code

const failResults = resultsWithFailure(`\`${processDisplayName}\` failed.`, "### Log\n\n" + markdownCode(allLogs))
const moreMarkdown = "### Log\n\n<details>\n\n" + markdownCode(allLogs) + "\n\n</details>\n"
const failResults = resultsWithFailure(`\`${processDisplayName}\` failed.`, moreMarkdown)
if (results) {
results = mergeResults(results, failResults)
} else {
Expand Down