]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-106217: Truncate the issue body size of `new-bugs-announce-notifier` (#106329)
authorNikita Sobolev <mail@sobolevn.me>
Sun, 2 Jul 2023 14:15:28 +0000 (17:15 +0300)
committerGitHub <noreply@github.com>
Sun, 2 Jul 2023 14:15:28 +0000 (17:15 +0300)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
.github/workflows/new-bugs-announce-notifier.yml

index 73806c5d6d58af96c2c5f1be8ec4bb489e132154..e3572db670693eb8744d7d2092e35673f624d497 100644 (file)
@@ -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 = {