summaryrefslogtreecommitdiff
path: root/gitlab/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab/__init__.py')
-rw-r--r--gitlab/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py
index 64d45e5..4de778a 100644
--- a/gitlab/__init__.py
+++ b/gitlab/__init__.py
@@ -451,6 +451,13 @@ class Gitlab(object):
DeprecationWarning)
return UserProject._get_list_or_object(self, id, **kwargs)
+ def ProjectFork(self, id=None, **kwargs):
+ """Fork a project for a user.
+
+ id must be a dict.
+ """
+ return ProjectFork._get_list_or_object(self, id, **kwargs)
+
def _list_projects(self, url, **kwargs):
r = self._raw_get(url, **kwargs)
raise_error_from_response(r, GitlabListError)