]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-106217: Truncate the issue body size of `new-bugs-announce-notifier` (#106423)
authorNikita Sobolev <mail@sobolevn.me>
Tue, 4 Jul 2023 18:20:00 +0000 (21:20 +0300)
committerGitHub <noreply@github.com>
Tue, 4 Jul 2023 18:20:00 +0000 (21:20 +0300)
.github/workflows/new-bugs-announce-notifier.yml

index e3572db670693eb8744d7d2092e35673f624d497..80514b4d2ca57249e324dee81c16f47dd82fb1bd 100644 (file)
@@ -44,7 +44,7 @@ jobs:
                 // 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)
+                body   : issue.data.body.substring(0, 8000)
               };
 
               const data = {