diff options
| author | fgouteroux <francois.gouteroux@d2-si.eu> | 2016-01-06 14:25:28 +0100 |
|---|---|---|
| committer | fgouteroux <francois.gouteroux@d2-si.eu> | 2016-01-06 14:25:28 +0100 |
| commit | cedf080ff8553b6ef5cd7995f5ab3608aaeb3793 (patch) | |
| tree | fc7880b59e168a1e6efdaa76e566e9fa4a9b8991 /gitlab/__init__.py | |
| parent | dc0099d7901bd381fabadb8be77b93e7258454b3 (diff) | |
| download | gitlab-cedf080ff8553b6ef5cd7995f5ab3608aaeb3793.tar.gz | |
add fork project support
Diffstat (limited to 'gitlab/__init__.py')
| -rw-r--r-- | gitlab/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gitlab/__init__.py b/gitlab/__init__.py index b2d8cb6..badab53 100644 --- a/gitlab/__init__.py +++ b/gitlab/__init__.py @@ -444,6 +444,13 @@ class Gitlab(object): """ 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) |
