summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain@pocentek.net>2016-12-02 20:40:04 +0100
committerGitHub <noreply@github.com>2016-12-02 20:40:04 +0100
commit39288c8fca774112ef1445c1281001a6190dd080 (patch)
tree7a7a786ba967db56a9d418a15e139bb94a8d9881 /gitlab/objects.py
parent6e5734bd910ef2d04122c162bac44c8843793312 (diff)
parentac2bf240510f26c477ea02eddb0425f2afb64fcc (diff)
downloadgitlab-39288c8fca774112ef1445c1281001a6190dd080.tar.gz
Merge pull request #186 from localmed/fix-should-remove-source-branch
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,