From cd71efa2136f28dc824294e95d38923a1cd07bf8 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Sun, 2 Jul 2023 10:21:42 +0300 Subject: [PATCH 1/2] gh-106217: Trunkate the issue body size of `new-bugs-announce-notifier` --- .github/workflows/new-bugs-announce-notifier.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/new-bugs-announce-notifier.yml b/.github/workflows/new-bugs-announce-notifier.yml index b2b63472d83421..83f24df06034c0 100644 --- a/.github/workflows/new-bugs-announce-notifier.yml +++ b/.github/workflows/new-bugs-announce-notifier.yml @@ -40,7 +40,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 trunkate 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 = { From 597b4dd0c1e02bb55aadcb720f4bdd2c2be737ac Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Sun, 2 Jul 2023 15:19:12 +0300 Subject: [PATCH 2/2] Update .github/workflows/new-bugs-announce-notifier.yml Co-authored-by: Hugo van Kemenade --- .github/workflows/new-bugs-announce-notifier.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/new-bugs-announce-notifier.yml b/.github/workflows/new-bugs-announce-notifier.yml index 83f24df06034c0..dd6a0e5b357152 100644 --- a/.github/workflows/new-bugs-announce-notifier.yml +++ b/.github/workflows/new-bugs-announce-notifier.yml @@ -40,7 +40,7 @@ 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 }), - // We need to trunkate the body size, because the max size for + // 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) pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy