Skip to content

Commit 6b52bd7

Browse files
chore: use markdown to display github comments truncation header (#4885)
Co-authored-by: Rui Chen <[email protected]>
1 parent a1e6d61 commit 6b52bd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/events/vcs/github_client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ func (g *GithubClient) CreateComment(logger logging.SimpleLogging, repo models.R
232232
"```diff\n"
233233
}
234234

235-
truncationHeader := "\n```\n</details>" +
236-
"\n<br>\n\n**Warning**: Command output is larger than the maximum number of comments per command. Output truncated.\n\n[..]\n"
235+
truncationHeader := "> [!WARNING]\n" +
236+
"> **Warning**: Command output is larger than the maximum number of comments per command. Output truncated.\n"
237237

238238
comments := common.SplitComment(comment, maxCommentLength, sepEnd, sepStart, g.maxCommentsPerCommand, truncationHeader)
239239
for i := range comments {

0 commit comments

Comments
 (0)