Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit32d4224

Browse files
author
Mart Sõmermaa
committed
Add support for project events.
1 parent6705928 commit32d4224

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

‎gitlab.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,16 @@ class ProjectKey(GitlabObject):
683683
requiredCreateAttrs= ['project_id','title','key']
684684

685685

686+
classProjectEvent(GitlabObject):
687+
_url='/projects/%(project_id)s/events'
688+
canGet=False
689+
canDelete=False
690+
canUpdate=False
691+
canCreate=False
692+
requiredListAttrs= ['project_id']
693+
shortPrintAttr='target_title'
694+
695+
686696
classProjectHook(GitlabObject):
687697
_url='/projects/%(project_id)s/hooks'
688698
requiredListAttrs= ['project_id']
@@ -844,6 +854,11 @@ def Commit(self, id=None, **kwargs):
844854
project_id=self.id,
845855
**kwargs)
846856

857+
defEvent(self,id=None,**kwargs):
858+
returnself._getListOrObject(ProjectEvent,id,
859+
project_id=self.id,
860+
**kwargs)
861+
847862
defHook(self,id=None,**kwargs):
848863
returnself._getListOrObject(ProjectHook,id,
849864
project_id=self.id,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp