summary refs log tree commit diff
diff options
context:
space:
mode:
authorCyber <cyber.hf18@gmail.com>2025-12-12 22:21:53 +0100
committerGitHub <noreply@github.com>2025-12-12 22:21:53 +0100
commit66c8ab8da8f5b87dcf056531745a67bbd5be8f85 (patch)
treeab1a869a107ab31397f2f5b7d937f631137ae44b
parentfix: prevent race condition in rabbitmq (diff)
parentMerge branch 'spacebarchat:master' into fix/gh-embeds-new-commits-title-link (diff)
downloadserver-ts-66c8ab8da8f5b87dcf056531745a67bbd5be8f85.tar.xz
Merge pull request #1434 from CyberL1/fix/gh-embeds-new-commits-title-link
-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(