Revert "ci/github-script/commits: keep formatting for diffs of markdown blocks"

This reverts commit b19798c8b0.

It lead to messed up formatting of the diff.
This commit is contained in:
Wolfgang Walther
2025-07-20 16:04:23 +02:00
parent 154c231a6d
commit 4a0c2c58a2

View File

@@ -220,14 +220,9 @@ module.exports = async function ({ github, context, core, dry }) {
}
core.summary.addRaw('<details><summary>Show diff</summary>')
core.summary.addCodeBlock(
truncated
.join('\n')
.replace(/&/g, '&amp;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;'),
'diff',
)
core.summary.addRaw('\n\n```diff', true)
core.summary.addRaw(truncated.join('\n'), true)
core.summary.addRaw('```', true)
core.summary.addRaw('</details>')
}