diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2023-07-02 14:15:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-02 14:15:28 (GMT) |
commit | 5950e7dbfcd9307c7e74184a1586ef99f9f35c3b (patch) | |
tree | 7ee90bcb476b676ff3fb8557f6705916543e0e88 /.github | |
parent | d5bd32fb48ef8db2586b09d951514d75437b6195 (diff) | |
download | cpython-5950e7dbfcd9307c7e74184a1586ef99f9f35c3b.zip cpython-5950e7dbfcd9307c7e74184a1586ef99f9f35c3b.tar.gz cpython-5950e7dbfcd9307c7e74184a1586ef99f9f35c3b.tar.bz2 |
gh-106217: Truncate the issue body size of `new-bugs-announce-notifier` (#106329)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/new-bugs-announce-notifier.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/new-bugs-announce-notifier.yml b/.github/workflows/new-bugs-announce-notifier.yml index 73806c5..e3572db 100644 --- a/.github/workflows/new-bugs-announce-notifier.yml +++ b/.github/workflows/new-bugs-announce-notifier.yml @@ -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 = { |