summary refs log tree commit diff
diff options
context:
space:
mode:
authorCyberL1 <cyber.hf18@gmail.com>2025-12-19 07:28:28 +0100
committerCyberL1 <cyber.hf18@gmail.com>2025-12-19 07:28:28 +0100
commitaf0b9d45fe203760bc4dcab40eb0f7df83d83d3d (patch)
treed7425741bc3b130056ad0ffdf0298e31e0799ca9
parentfix: description length for `issue` event (diff)
downloadserver-ts-af0b9d45fe203760bc4dcab40eb0f7df83d83d3d.tar.xz
fix: description length for `issue_comment` event
-rw-r--r--src/api/routes/webhooks/#webhook_id/#token/github.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/routes/webhooks/#webhook_id/#token/github.ts b/src/api/routes/webhooks/#webhook_id/#token/github.ts

index 09a33fbb..f3f8235e 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;