mirror of
https://github.com/python/cpython
synced 2026-09-27 01:43:17 +03:00
gh-106217: Truncate the issue body size of new-bugs-announce-notifier (#106329)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
d5bd32fb48
commit
5950e7dbfc
1 changed files with 4 additions and 1 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue