summaryrefslogtreecommitdiff
path: root/gitlab/objects.py
diff options
context:
space:
mode:
authorGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2016-01-08 22:05:37 +0100
committerGauvain Pocentek <gauvain.pocentek@objectif-libre.com>2016-01-08 22:05:37 +0100
commite8631c1d505690a04704a9c19ba4a2d8564c6ef4 (patch)
tree268262da88b7cb8ffcdfe2d54c0aeb941010a43f /gitlab/objects.py
parent37912c1ccd395b2831be0b6f4155264a1ebcb1fe (diff)
downloadgitlab-e8631c1d505690a04704a9c19ba4a2d8564c6ef4.tar.gz
Create a manager for ProjectFork objects
Diffstat (limited to 'gitlab/objects.py')
-rw-r--r--gitlab/objects.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/gitlab/objects.py b/gitlab/objects.py
index db21eaf..3637fe8 100644
--- a/gitlab/objects.py
+++ b/gitlab/objects.py
@@ -554,6 +554,10 @@ class ProjectFork(GitlabObject):
requiredUrlAttrs = ['project_id']
+class ProjectForkManager(BaseManager):
+ obj_cls = ProjectFork
+
+
class ProjectHook(GitlabObject):
_url = '/projects/%(project_id)s/hooks'
requiredUrlAttrs = ['project_id']
@@ -798,6 +802,7 @@ class Project(GitlabObject):
('commits', ProjectCommitManager, [('project_id', 'id')]),
('events', ProjectEventManager, [('project_id', 'id')]),
('files', ProjectFileManager, [('project_id', 'id')]),
+ ('forks', ProjectForkManager, [('project_id', 'id')]),
('hooks', ProjectHookManager, [('project_id', 'id')]),
('keys', ProjectKeyManager, [('project_id', 'id')]),
('issues', ProjectIssueManager, [('project_id', 'id')]),