From 56d2c7d65ef7d9dc3318a3b9698b0334b26fc0a0 Mon Sep 17 00:00:00 2001 From: MinUk Song Date: Fri, 14 Jun 2024 13:50:46 -0700 Subject: [PATCH] fix: change http method --- lib/cli-create.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli-create.ts b/lib/cli-create.ts index 7201742..867aad2 100644 --- a/lib/cli-create.ts +++ b/lib/cli-create.ts @@ -28,7 +28,7 @@ export async function createAction(options: CreateOptions) { const config = resolvePluginConfig({projectId: options.projectId, gitlabUrl: options.gitlabUrl}, fakeContext); const instance = newAxiosInstance(config); - const response: AxiosResponse | AxiosError = await instance.put(urlJoin(config.gitlabBaseUrl, 'merge_requests'), { + const response: AxiosResponse | AxiosError = await instance.post(urlJoin(config.gitlabBaseUrl, 'merge_requests'), { source_branch: options.sourceBranch, target_branch: options.targetBranch, title: options.title,