summary refs log tree commit diff
diff options
context:
space:
mode:
authorCyberL1 <cyber.hf18@gmail.com>2025-12-19 07:55:27 +0100
committerCyberL1 <cyber.hf18@gmail.com>2025-12-19 07:55:27 +0100
commitf08d685a00ab76904a33919da080dd57a3224a96 (patch)
tree7f957ac5dc83ff979d637b3c51e7b57b58ea0eba
parentrefactor: adjust commit lenghts for `push` event (diff)
downloadserver-ts-f08d685a00ab76904a33919da080dd57a3224a96.tar.xz
refactor: adjust numbers for length limits
-rw-r--r--src/api/routes/webhooks/#webhook_id/#token/github.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/routes/webhooks/#webhook_id/#token/github.ts b/src/api/routes/webhooks/#webhook_id/#token/github.ts

index 8d2d6f41..9f561b9d 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 > 501 ? `${req.body.comment.body.slice(0, 497)}...` : req.body.comment.body, + description: req.body.comment.body.length > 500 ? `${req.body.comment.body.slice(0, 497)}...` : req.body.comment.body, }, ]; break; @@ -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 > 501 ? `${req.body.issue.body.slice(0, 497)}...` : req.body.issue.body; + discordPayload.embeds[0].description = req.body.issue.body.length > 500 ? `${req.body.issue.body.slice(0, 497)}...` : req.body.issue.body; } break; case "member":