File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -363,11 +363,18 @@ class File(APIDefinition):
363363 ]
364364
365365 class Commit (APIDefinition ):
366- url = '/repository/commits'
367- actions = [ _LIST ]
366+ url = '/repository/commits/:sha '
367+ actions = [ _LIST , _GET ]
368368 optional_params = [
369369 'ref_name' ,
370370 ]
371+ class DiffAction (ExtraActionDefinition ):
372+ """gl.Project.Commit.diff()"""
373+ url = '/diff'
374+ method = _HTTP_GET
375+ class GetDiffAction (DiffAction ):
376+ pass
377+ extra_actions = [ DiffAction , GetDiffAction ]
371378
372379 class WallNote (Note ):
373380 @classmethod
Original file line number Diff line number Diff line change 77
88setup (
99 name = 'gitlab3' ,
10- version = '0.4.0 ' ,
10+ version = '0.4.1 ' ,
1111 license = 'LGPLv3' ,
1212 description = 'GitLab API v3 Python Wrapper.' ,
1313 long_description = 'A complete Python client/wrapper for GitLab API v3' ,
You can’t perform that action at this time.
0 commit comments