From 3679dbe8b8d5194e1cd155d14dd4df9ea077114d Mon Sep 17 00:00:00 2001 From: BradBot_1 Date: Thu, 23 Feb 2023 19:38:20 +0000 Subject: [PATCH] prioritse ssh --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index eacdede..217df89 100644 --- a/src/index.ts +++ b/src/index.ts @@ -85,7 +85,7 @@ createServer(parseInt(env["PORT"]||"3000"), async (webhookId: string, webhookDat const forward: Forward|null = getForwardByWebhook(webhookId); if (forward == null) return; if (!webhookData.hasOwnProperty("repository")) return; - const url: any = webhookData.repository.clone_url || webhookData.repository.ssh_url || webhookData.repository.html_url; + const url: any = webhookData.repository.ssh_url || webhookData.repository.clone_url || webhookData.repository.html_url; if (typeof url !== "string" || forward.origin !== url) { console.log("[VAL] Invalid webhook origin!"); return;