diff options
author | Gauvain Pocentek <gauvainpocentek@gmail.com> | 2019-01-26 10:43:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-26 10:43:46 +0100 |
commit | 31bca2f9ee55ffa69d34f4584e90da01d3f6325e (patch) | |
tree | 851a2892f9db859956e5cd19455fec30275f4578 | |
parent | 641b80a373746c9e6dc6d043216ebc4ba5613011 (diff) | |
parent | 877ddc0dbb664cd86e870bb81d46ca614770b50e (diff) | |
download | gitlab-31bca2f9ee55ffa69d34f4584e90da01d3f6325e.tar.gz |
Merge pull request #689 from python-gitlab/fix/wrong-rebase
fix: re-add merge request pipelines
-rw-r--r-- | gitlab/v4/objects.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gitlab/v4/objects.py b/gitlab/v4/objects.py index af61488..8348c76 100644 --- a/gitlab/v4/objects.py +++ b/gitlab/v4/objects.py @@ -2277,6 +2277,25 @@ class ProjectMergeRequest(SubscribableMixin, TodoMixin, TimeTrackingMixin, 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): |