Skip to content

Commit 3ac042a

Browse files
committed
bot: Add Summary and remaining errors to output
1 parent 7a19190 commit 3ac042a

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

open-bot.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,28 @@ rules:
8080
- "^[\\s\\S]+?\\d+\\s+pending\n+"
8181
- "npm ERR!.*\n"
8282
- "\n*=============================================================================\n[\\s\\S]*"
83+
string_cleanup:
84+
id: firstError
85+
value: "{{{logResult}}}"
86+
remove:
87+
- "^[\\s\\S]+?(?=\\s2\\)\\s)"
88+
string_cleanup:
89+
id: remainingErrors
90+
value: "{{{logResult}}}"
91+
remove:
92+
- "\\s2\\)\\s[\\s\\S]*"
8393
actions:
8494
comment:
8595
identifier: "ci-result"
8696
message: |-
8797
@{{commit.author.login}} Please review the following output log for errors:
98+
```text
99+
{{{firstError}}}
100+
```
88101
<details>
102+
<summary>Show remaining errors</summary>
89103
``` text
90-
{{{logResult}}}
104+
{{{remainingErrors}}}
91105
```
92106
</details>
93107

0 commit comments

Comments
 (0)