fix: description length for issue_comment event

This commit is contained in:
CyberL1
2025-12-19 07:28:28 +01:00
parent ee120fb2e0
commit af0b9d45fe

View File

@@ -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;