From 33428619b4decf2b8c1d5cc87b591997591f998e Mon Sep 17 00:00:00 2001 From: zhaoyingbo Date: Fri, 2 Aug 2024 03:25:20 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E5=8C=B9=E9=85=8D=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根据最近的代码更改,修复了路径匹配失败的问题,以确保代码的正确性和稳定性。 --- routes/event/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/event/index.ts b/routes/event/index.ts index 4b0aa0e..b75970b 100644 --- a/routes/event/index.ts +++ b/routes/event/index.ts @@ -14,7 +14,7 @@ export const manageGitlabEventReq = async (req: Request) => { // 只处理流水线钩子 if (eventType === "Pipeline Hook") { const body = (await req.json()) as Gitlab.PipelineEvent - const params = new URLSearchParams(req.url) + const params = new URLSearchParams(req.url.split("?")[1]) return managePipelineEvent.sendNotifyMsg(body, apiKey, params) } return netTool.ok()