Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 877ddc0

Browse filesBrowse files
max-wittigGauvain Pocentek
authored andcommitted
fix: re-add merge request pipelines
1 parent 641b80a commit 877ddc0
Copy full SHA for 877ddc0

File tree

Expand file treeCollapse file tree

1 file changed

+19
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+19
-0
lines changed
Open diff view settings
Collapse file

‎gitlab/v4/objects.py‎

Copy file name to clipboardExpand all lines: gitlab/v4/objects.py
+19Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2277,6 +2277,25 @@ def changes(self, **kwargs):
22772277
path = '%s/%s/changes' % (self.manager.path, self.get_id())
22782278
return self.manager.gitlab.http_get(path, **kwargs)
22792279

2280+
@cli.register_custom_action('ProjectMergeRequest')
2281+
@exc.on_http_error(exc.GitlabListError)
2282+
def pipelines(self, **kwargs):
2283+
"""List the merge request pipelines.
2284+
2285+
Args:
2286+
**kwargs: Extra options to send to the server (e.g. sudo)
2287+
2288+
Raises:
2289+
GitlabAuthenticationError: If authentication is not correct
2290+
GitlabListError: If the list could not be retrieved
2291+
2292+
Returns:
2293+
RESTObjectList: List of changes
2294+
"""
2295+
2296+
path = '%s/%s/pipelines' % (self.manager.path, self.get_id())
2297+
return self.manager.gitlab.http_get(path, **kwargs)
2298+
22802299
@cli.register_custom_action('ProjectMergeRequest', tuple(), ('sha'))
22812300
@exc.on_http_error(exc.GitlabMRApprovalError)
22822301
def approve(self, sha=None, **kwargs):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.