@@ -2049,7 +2049,7 @@ class ProjectFork(RESTObject):
2049
2049
2050
2050
2051
2051
class ProjectForkManager (CreateMixin , ListMixin , RESTManager ):
2052
- _path = "/projects/%(project_id)s/fork "
2052
+ _path = "/projects/%(project_id)s/forks "
2053
2053
_obj_cls = ProjectFork
2054
2054
_from_parent_attrs = {"project_id" : "id" }
2055
2055
_list_filters = (
@@ -2069,28 +2069,6 @@ class ProjectForkManager(CreateMixin, ListMixin, RESTManager):
2069
2069
)
2070
2070
_create_attrs = (tuple (), ("namespace" ,))
2071
2071
2072
- def list (self , ** kwargs ):
2073
- """Retrieve a list of objects.
2074
-
2075
- Args:
2076
- all (bool): If True, return all the items, without pagination
2077
- per_page (int): Number of items to retrieve per request
2078
- page (int): ID of the page to return (starts with page 1)
2079
- as_list (bool): If set to False and no pagination option is
2080
- defined, return a generator instead of a list
2081
- **kwargs: Extra options to send to the server (e.g. sudo)
2082
-
2083
- Returns:
2084
- list: The list of objects, or a generator if `as_list` is False
2085
-
2086
- Raises:
2087
- GitlabAuthenticationError: If authentication is not correct
2088
- GitlabListError: If the server cannot perform the request
2089
- """
2090
-
2091
- path = self ._compute_path ("/projects/%(project_id)s/forks" )
2092
- return ListMixin .list (self , path = path , ** kwargs )
2093
-
2094
2072
2095
2073
class ProjectHook (SaveMixin , ObjectDeleteMixin , RESTObject ):
2096
2074
_short_print_attr = "url"
0 commit comments