mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-25 14:02:08 +00:00
fix: description length for issue_comment event
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user