Skip to content

Commit

Permalink
[v4] MR s/build/pipeline/ in attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauvain Pocentek committed May 23, 2017
1 parent 8b75bc8 commit 9de53bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitlab/v4/objects.py
Expand Up @@ -1223,10 +1223,10 @@ def unsubscribe(self, **kwargs):
if r.status_code == 200:
self._set_from_dict(r.json())

def cancel_merge_when_build_succeeds(self, **kwargs):
def cancel_merge_when_pipeline_succeeds(self, **kwargs):
"""Cancel merge when build succeeds."""

u = ('/projects/%s/merge_requests/%s/cancel_merge_when_build_succeeds'
u = ('/projects/%s/merge_requests/%s/cancel_merge_when_pipeline_succeeds'
% (self.project_id, self.id))
r = self.gitlab._raw_put(u, **kwargs)
errors = {401: GitlabMRForbiddenError,
Expand Down

0 comments on commit 9de53bf

Please sign in to comment.