File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,10 @@ class GetBlobAction(ExtraActionDefinition):
168
168
required_params = [
169
169
'filepath' ,
170
170
]
171
+ class GetCommentsAction (ExtraActionDefinition ):
172
+ """gl.Project.get_comments"""
173
+ url = '/repository/commits/:sha_or_ref_name/comments'
174
+ method = _HTTP_GET
171
175
class ProtectBranchAction (ExtraActionDefinition ):
172
176
"""gl.Project.protect_branch()"""
173
177
url = '/repository/branches/:branch/protect'
@@ -203,6 +207,7 @@ def wrapped(self, branch):
203
207
ForkFromAction ,
204
208
DeleteForkAction ,
205
209
GetBlobAction ,
210
+ GetCommentsAction ,
206
211
ProtectBranchAction ,
207
212
UnprotectBranchAction ,
208
213
]
@@ -306,8 +311,12 @@ class PostCommentAction(ExtraActionDefinition):
306
311
required_args = [
307
312
'note' ,
308
313
]
314
+ class GetCommitsAction (ExtraActionDefinition ):
315
+ """gl.Project.MergeRequest.get_commits()"""
316
+ url = '/commits'
317
+ method = _HTTP_GET
309
318
310
- extra_actions = [ PostCommentAction ]
319
+ extra_actions = [ PostCommentAction , GetCommitsAction ]
311
320
sub_apis = [ Note ]
312
321
313
322
class Milestone (APIDefinition ):
You can’t perform that action at this time.
0 commit comments