Skip to content

Commit

Permalink
fix: change http method
Browse files Browse the repository at this point in the history
  • Loading branch information
uanid committed Jun 14, 2024
1 parent abe47a9 commit 56d2c7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cli-create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 56d2c7d

Please sign in to comment.