Skip to content

Commit

Permalink
Merge pull request #186 from localmed/fix-should-remove-source-branch
Browse files Browse the repository at this point in the history
Fix `should_remove_source_branch`
  • Loading branch information
Gauvain Pocentek committed Dec 2, 2016
2 parents 6e5734b + ac2bf24 commit 39288c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitlab/objects.py
Expand Up @@ -1732,9 +1732,9 @@ def merge(self, merge_commit_message=None,
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,
Expand Down

0 comments on commit 39288c8

Please sign in to comment.