[llvm] [Github] Truncate Bug Emails when Necessary (PR #166081)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 2 10:59:05 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-github-workflow
Author: Aiden Grossman (boomanaiden154)
<details>
<summary>Changes</summary>
Mailgun limits the size of an email payload to 16k. Truncate the issue body, which should be the largest part around 15k and point the user to Github to see the rest.
Fixes #<!-- -->165020
---
Full diff: https://github.com/llvm/llvm-project/pull/166081.diff
1 Files Affected:
- (modified) .github/workflows/llvm-bugs.yml (+6)
``````````diff
diff --git a/.github/workflows/llvm-bugs.yml b/.github/workflows/llvm-bugs.yml
index 7d42abfadde7b..cd3f396e7c465 100644
--- a/.github/workflows/llvm-bugs.yml
+++ b/.github/workflows/llvm-bugs.yml
@@ -39,6 +39,12 @@ jobs:
repo: context.repo.repo
})
.then((issue) => {
+ var maybeTruncatedBody = issue.data.body;
+ if (maybeTruncatedBody.length > 15000) {
+ maybeTruncatedBody = maybeTruncatedBody.substring(0,
+ 15000) +
+ "<truncated>Please see the issue for the entire body."
+ }
const payload = {
author : issue.data.user.login,
issue : issue.data.number,
``````````
</details>
https://github.com/llvm/llvm-project/pull/166081
More information about the llvm-commits
mailing list