summaryrefslogtreecommitdiff
path: root/gitlab
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab')
-rw-r--r--gitlab/v4/objects/merge_requests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/v4/objects/merge_requests.py b/gitlab/v4/objects/merge_requests.py
index dd37ada..f6c5611 100644
--- a/gitlab/v4/objects/merge_requests.py
+++ b/gitlab/v4/objects/merge_requests.py
@@ -312,8 +312,8 @@ class ProjectMergeRequest(
data = {}
if merge_commit_message:
data["merge_commit_message"] = merge_commit_message
- if should_remove_source_branch:
- data["should_remove_source_branch"] = True
+ if should_remove_source_branch is not None:
+ data["should_remove_source_branch"] = should_remove_source_branch
if merge_when_pipeline_succeeds:
data["merge_when_pipeline_succeeds"] = True