Skip to content

Commit cd71efa

Browse files
authored
pythongh-106217: Trunkate the issue body size of new-bugs-announce-notifier
1 parent f0a6800 commit cd71efa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/new-bugs-announce-notifier.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ jobs:
4040
url : issue.data.html_url,
4141
labels : issue.data.labels.map(label => { return label.name }).join(", "),
4242
assignee : issue.data.assignees.map(assignee => { return assignee.login }),
43-
body : issue.data.body
43+
// We need to trunkate the body size, because the max size for
44+
// the whole payload is 16kb. We want to be safe and assume that
45+
// body can take up to ~8kb of space.
46+
body : issue.data.body.substring(8000)
4447
};
4548
4649
const data = {

0 commit comments

Comments
 (0)