Skip to content

Commit

Permalink
Merge pull request #689 from python-gitlab/fix/wrong-rebase
Browse files Browse the repository at this point in the history
fix: re-add merge request pipelines
  • Loading branch information
gpocentek committed Jan 26, 2019
2 parents 641b80a + 877ddc0 commit 31bca2f
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions gitlab/v4/objects.py
Expand Up @@ -2277,6 +2277,25 @@ def changes(self, **kwargs):
path = '%s/%s/changes' % (self.manager.path, self.get_id())
return self.manager.gitlab.http_get(path, **kwargs)

@cli.register_custom_action('ProjectMergeRequest')
@exc.on_http_error(exc.GitlabListError)
def pipelines(self, **kwargs):
"""List the merge request pipelines.
Args:
**kwargs: Extra options to send to the server (e.g. sudo)
Raises:
GitlabAuthenticationError: If authentication is not correct
GitlabListError: If the list could not be retrieved
Returns:
RESTObjectList: List of changes
"""

path = '%s/%s/pipelines' % (self.manager.path, self.get_id())
return self.manager.gitlab.http_get(path, **kwargs)

@cli.register_custom_action('ProjectMergeRequest', tuple(), ('sha'))
@exc.on_http_error(exc.GitlabMRApprovalError)
def approve(self, sha=None, **kwargs):
Expand Down

0 comments on commit 31bca2f

Please sign in to comment.