From ee120fb2e0023f4d004777e10afefd3a624bea1f Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Fri, 19 Dec 2025 07:27:00 +0100 Subject: [PATCH 1/3] fix: description length for `issue` event --- src/api/routes/webhooks/#webhook_id/#token/github.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/webhooks/#webhook_id/#token/github.ts b/src/api/routes/webhooks/#webhook_id/#token/github.ts index 81aa40a93..09a33fbba 100644 --- a/src/api/routes/webhooks/#webhook_id/#token/github.ts +++ b/src/api/routes/webhooks/#webhook_id/#token/github.ts @@ -119,7 +119,7 @@ const parseGitHubWebhook = (req: Request, res: Response, next: NextFunction) => if (req.body.action === "opened") { discordPayload.embeds[0].color = 15426592; - discordPayload.embeds[0].description = req.body.issue.body.length > 150 ? `${req.body.issue.body.slice(0, 147)}...` : req.body.issue.body; + discordPayload.embeds[0].description = req.body.issue.body.length > 501 ? `${req.body.issue.body.slice(0, 497)}...` : req.body.issue.body; } break; case "member": From af0b9d45fe203760bc4dcab40eb0f7df83d83d3d Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Fri, 19 Dec 2025 07:28:28 +0100 Subject: [PATCH 2/3] fix: description length for `issue_comment` event --- src/api/routes/webhooks/#webhook_id/#token/github.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/routes/webhooks/#webhook_id/#token/github.ts b/src/api/routes/webhooks/#webhook_id/#token/github.ts index 09a33fbba..f3f8235e1 100644 --- a/src/api/routes/webhooks/#webhook_id/#token/github.ts +++ b/src/api/routes/webhooks/#webhook_id/#token/github.ts @@ -95,7 +95,7 @@ const parseGitHubWebhook = (req: Request, res: Response, next: NextFunction) => req.body.issue.title.length > 150 ? `${req.body.issue.title.slice(0, 147)}...` : req.body.issue.title }`, url: req.body.comment.html_url, - description: req.body.comment.body.length > 150 ? `${req.body.comment.body.slice(0, 497)}...` : req.body.comment.body, + description: req.body.comment.body.length > 501 ? `${req.body.comment.body.slice(0, 497)}...` : req.body.comment.body, }, ]; break; From 8c1cd45a8079e6dd3ce09b4031725eec7456cab1 Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Fri, 19 Dec 2025 07:32:42 +0100 Subject: [PATCH 3/3] chore: run prettier --- scripts/schemaExclusions.json | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/scripts/schemaExclusions.json b/scripts/schemaExclusions.json index 64e2bbf00..b28476707 100644 --- a/scripts/schemaExclusions.json +++ b/scripts/schemaExclusions.json @@ -1,10 +1,6 @@ { - "include": [ - "MessageInteractionSchema" - ], - "includeRe": [ - "^MessageComponentType\\..*" - ], + "include": ["MessageInteractionSchema"], + "includeRe": ["^MessageComponentType\\..*"], "manual": [ "DefaultSchema", "Schema", @@ -87,9 +83,7 @@ "^Job" ], "manualWarn": [], - "manualWarnRe": [ - ".*<.*>$" - ], + "manualWarnRe": [".*<.*>$"], "auto": [ { "value": "StringSchema", @@ -412,4 +406,4 @@ "reason": "Schema with only uppercase properties" } ] -} \ No newline at end of file +}