[Python-checkins] gh-106217: Truncate the issue body size of `new-bugs-announce-notifier` (#106423)

hugovk webhook-mailer at python.org
Tue Jul 4 14:20:04 EDT 2023


https://github.com/python/cpython/commit/c5dacc8fa0c3013be8b457afac996bdae1dc12d2
commit: c5dacc8fa0c3013be8b457afac996bdae1dc12d2
branch: main
author: Nikita Sobolev <mail at sobolevn.me>
committer: hugovk <hugovk at users.noreply.github.com>
date: 2023-07-04T21:20:00+03:00
summary:

gh-106217: Truncate the issue body size of `new-bugs-announce-notifier` (#106423)

files:
M .github/workflows/new-bugs-announce-notifier.yml

diff --git a/.github/workflows/new-bugs-announce-notifier.yml b/.github/workflows/new-bugs-announce-notifier.yml
index e3572db670693..80514b4d2ca57 100644
--- a/.github/workflows/new-bugs-announce-notifier.yml
+++ b/.github/workflows/new-bugs-announce-notifier.yml
@@ -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 = {



More information about the Python-checkins mailing list