feat(standard-make): use details for large test outputs
This commit is contained in:
parent
170f143b00
commit
90587b05a9
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue