summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
authorCyberL1 <cyber.hf18@gmail.com>2025-12-12 22:19:10 +0100
committerCyberL1 <cyber.hf18@gmail.com>2025-12-12 22:19:10 +0100
commitbf8add14c1ac4576f2ac6ad781d0d8b4cc207385 (patch)
treecda516ef48c39fc215bc19294cad41ed8a03f80b /src/api
parentPerhaps, dont IP ban moderators (diff)
downloadserver-ts-bf8add14c1ac4576f2ac6ad781d0d8b4cc207385.tar.xz
fix: show compare url on multiple commits
Diffstat (limited to 'src/api')
-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 256130b9..ef47c1d9 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(