From bf8add14c1ac4576f2ac6ad781d0d8b4cc207385 Mon Sep 17 00:00:00 2001 From: CyberL1 Date: Fri, 12 Dec 2025 22:19:10 +0100 Subject: [PATCH] fix: show compare url on multiple commits --- 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 256130b9c..ef47c1d9e 100644 --- a/src/api/routes/webhooks/#webhook_id/#token/github.ts +++ b/src/api/routes/webhooks/#webhook_id/#token/github.ts @@ -243,7 +243,7 @@ const parseGitHubWebhook = (req: Request, res: Response, next: NextFunction) => url: req.body.sender.html_url, }, title: `[${req.body.repository.name}:${req.body.ref.slice(11)}] ${req.body.commits.length} new commit${req.body.commits.length > 1 ? "s" : ""}`, - url: req.body.head_commit.url, + url: req.body.commits.length > 1 ? req.body.compare : req.body.head_commit.url, description: req.body.commits .slice(0, 5) // Discord only shows 5 first commits .map(