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::
116
116
117
117
commits = mr.commits()
118
118
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
+
119
127
List issues that will close on merge::
120
128
121
129
mr.closes_issues()
Original file line number Diff line number Diff line change @@ -2157,6 +2157,24 @@ def changes(self, **kwargs):
2157
2157
path = '%s/%s/changes' % (self .manager .path , self .get_id ())
2158
2158
return self .manager .gitlab .http_get (path , ** kwargs )
2159
2159
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
+
2160
2178
@cli .register_custom_action ('ProjectMergeRequest' , tuple (),
2161
2179
('merge_commit_message' ,
2162
2180
'should_remove_source_branch' ,
You can’t perform that action at this time.
0 commit comments