Skip to content

Commit

Permalink
reduce report-release max length
Browse files Browse the repository at this point in the history
  • Loading branch information
MahdiBM committed Sep 15, 2023
1 parent b350d77 commit fa46a53
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Lambdas/GHHooks/EventHandler/Handlers/ReleaseReporter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ struct ReleaseReporter {
func sendToDiscord(pr: SimplePullRequest) async throws {
let body = pr.body.map { body -> String in
body.formatMarkdown(
maxVisualLength: 384,
maxVisualLength: 256,
hardLimit: 2_048,
trailingTextMinLength: 96
)
Expand Down Expand Up @@ -169,7 +169,7 @@ struct ReleaseReporter {
\(prDescriptions)
""".formatMarkdown(
maxVisualLength: 384,
maxVisualLength: 256,
hardLimit: 2_048,
trailingTextMinLength: 96
)
Expand All @@ -182,7 +182,7 @@ struct ReleaseReporter {
named: "What's Changed"
) ?? body
let formatted = preferredContent.formatMarkdown(
maxVisualLength: 384,
maxVisualLength: 256,
hardLimit: 2_048,
trailingTextMinLength: 96
)
Expand Down

0 comments on commit fa46a53

Please sign in to comment.