File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,14 @@ List commits of a MR::
116116
117117 commits = mr.commits()
118118
119+ List the changes of a MR::
120+
121+ changes = mr.changes()
122+
123+ List the pipelines for a MR::
124+
125+ pipelines = mr.pipelines()
126+
119127List issues that will close on merge::
120128
121129 mr.closes_issues()
Original file line number Diff line number Diff line change @@ -2157,6 +2157,24 @@ def changes(self, **kwargs):
21572157 path = '%s/%s/changes' % (self .manager .path , self .get_id ())
21582158 return self .manager .gitlab .http_get (path , ** kwargs )
21592159
2160+ @cli .register_custom_action ('ProjectMergeRequest' )
2161+ @exc .on_http_error (exc .GitlabListError )
2162+ def pipelines (self , ** kwargs ):
2163+ """List the merge request pipelines.
2164+
2165+ Args:
2166+ **kwargs: Extra options to send to the server (e.g. sudo)
2167+
2168+ Raises:
2169+ GitlabAuthenticationError: If authentication is not correct
2170+ GitlabListError: If the list could not be retrieved
2171+
2172+ Returns:
2173+ RESTObjectList: List of changes
2174+ """
2175+ path = '%s/%s/pipelines' % (self .manager .path , self .get_id ())
2176+ return self .manager .gitlab .http_get (path , ** kwargs )
2177+
21602178 @cli .register_custom_action ('ProjectMergeRequest' , tuple (),
21612179 ('merge_commit_message' ,
21622180 'should_remove_source_branch' ,
You can’t perform that action at this time.
0 commit comments