diff options
| author | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2016-01-08 21:58:55 +0100 |
|---|---|---|
| committer | Gauvain Pocentek <gauvain.pocentek@objectif-libre.com> | 2016-01-08 21:58:55 +0100 |
| commit | 37912c1ccd395b2831be0b6f4155264a1ebcb1fe (patch) | |
| tree | ede1362b45671146d36657d8077a158c2f10d5c2 /gitlab/__init__.py | |
| parent | 2bf9794c81487883c346850a79d6b7db1295fd95 (diff) | |
| parent | 77d34b353a1dfb1892de316a58b461c26eead66b (diff) | |
| download | gitlab-37912c1ccd395b2831be0b6f4155264a1ebcb1fe.tar.gz | |
Merge branch 'fgouteroux-add_fork_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 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) |
