Skip to content

Commit

Permalink
gh-106217: Truncate the issue body size of `new-bugs-announce-notifie…
Browse files Browse the repository at this point in the history
…r` (#106329)


Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
  • Loading branch information
sobolevn and hugovk committed Jul 2, 2023
1 parent d5bd32f commit 5950e7d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/new-bugs-announce-notifier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ jobs:
url : issue.data.html_url,
labels : issue.data.labels.map(label => { return label.name }).join(", "),
assignee : issue.data.assignees.map(assignee => { return assignee.login }),
body : issue.data.body
// We need to truncate the body size, because the max size for
// the whole payload is 16kb. We want to be safe and assume that
// body can take up to ~8kb of space.
body : issue.data.body.substring(8000)
};
const data = {
Expand Down

0 comments on commit 5950e7d

Please sign in to comment.