diff --git a/index.ts b/index.ts index f5f3da5..1ff084f 100644 --- a/index.ts +++ b/index.ts @@ -1199,6 +1199,8 @@ async function createMergeRequest( labels: options.labels?.join(","), allow_collaboration: options.allow_collaboration, draft: options.draft, + remove_source_branch: options.remove_source_branch, + squash: options.squash, }), }); diff --git a/schemas.ts b/schemas.ts index 1a8f329..fd5a132 100644 --- a/schemas.ts +++ b/schemas.ts @@ -467,6 +467,8 @@ export const CreateMergeRequestOptionsSchema = z.object({ labels: z.array(z.string()).optional(), allow_collaboration: z.boolean().optional(), // Changed from maintainer_can_modify to match GitLab API draft: z.boolean().optional(), + remove_source_branch: z.boolean().optional().describe("Flag indicating if a merge request should remove the source branch when merging."), + squash: z.boolean().optional().describe("If true, squash all commits into a single commit on merge.") }); export const GitLabDiffSchema = z.object({