Skip to content

Commit de8ab1e

Browse files
benoittoulmechenrui333
authored andcommitted
chore: use markdown to display github comments truncation header (runatlantis#4885)
Co-authored-by: Rui Chen <[email protected]>
1 parent 4be0808 commit de8ab1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/events/vcs/github_client.go

+2-2
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)