feat(standard-make): use details for large test outputs

This commit is contained in:
wpetit 2024-04-11 14:27:13 +02:00
parent 170f143b00
commit 90587b05a9
1 changed files with 6 additions and 0 deletions

View File

@ -84,9 +84,15 @@ void call(Map options = [:]) {
String report = """ String report = """
|# Test report for ${gitCommit} |# Test report for ${gitCommit}
| |
|<details ${output.count('\n') <= 10 ? 'open' : ''}>
|
|<summary>Output</summary>
|
|``` |```
|${output} |${output}
|``` |```
|
|</details>
|""".trim().stripMargin() |""".trim().stripMargin()
gitea.commentPullRequest(repo, env.CHANGE_ID, report) gitea.commentPullRequest(repo, env.CHANGE_ID, report)