summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
authorPete Browne <pete.browne@localmed.com>2016-11-21 14:06:10 -0600
committerPete Browne <pete.browne@localmed.com>2016-11-21 14:06:10 -0600
commitac2bf240510f26c477ea02eddb0425f2afb64fcc (patch)
tree559966b8ad67f318d0460fd3895c70d280169cfd /gitlab/objects.py
parent764d3ca0087f0536c48c9e1f60076af211138b9b (diff)
downloadgitlab-ac2bf240510f26c477ea02eddb0425f2afb64fcc.tar.gz
Fix `should_remove_source_branch`
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r--gitlab/objects.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index a9ca565..2560ba4 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -1732,9 +1732,9 @@ class ProjectMergeRequest(GitlabObject):
if merge_commit_message:
data['merge_commit_message'] = merge_commit_message
if should_remove_source_branch:
- data['should_remove_source_branch'] = 'should_remove_source_branch'
+ data['should_remove_source_branch'] = True
if merged_when_build_succeeds:
- data['merged_when_build_succeeds'] = 'merged_when_build_succeeds'
+ data['merged_when_build_succeeds'] = True
r = self.gitlab._raw_put(url, data=data, **kwargs)
errors = {401: GitlabMRForbiddenError,