根据最近的代码更改,修复了路径匹配失败的问题,以确保代码的正确性和稳定性。
This commit is contained in:
parent
e7dcd217fa
commit
33428619b4
@ -14,7 +14,7 @@ export const manageGitlabEventReq = async (req: Request) => {
|
|||||||
// 只处理流水线钩子
|
// 只处理流水线钩子
|
||||||
if (eventType === "Pipeline Hook") {
|
if (eventType === "Pipeline Hook") {
|
||||||
const body = (await req.json()) as Gitlab.PipelineEvent
|
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 managePipelineEvent.sendNotifyMsg(body, apiKey, params)
|
||||||
}
|
}
|
||||||
return netTool.ok()
|
return netTool.ok()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user