File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -363,11 +363,18 @@ class File(APIDefinition):
363
363
]
364
364
365
365
class Commit (APIDefinition ):
366
- url = '/repository/commits'
367
- actions = [ _LIST ]
366
+ url = '/repository/commits/:sha '
367
+ actions = [ _LIST , _GET ]
368
368
optional_params = [
369
369
'ref_name' ,
370
370
]
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 ]
371
378
372
379
class WallNote (Note ):
373
380
@classmethod
Original file line number Diff line number Diff line change 7
7
8
8
setup (
9
9
name = 'gitlab3' ,
10
- version = '0.4.0 ' ,
10
+ version = '0.4.1 ' ,
11
11
license = 'LGPLv3' ,
12
12
description = 'GitLab API v3 Python Wrapper.' ,
13
13
long_description = 'A complete Python client/wrapper for GitLab API v3' ,
You can’t perform that action at this time.
0 commit comments