Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit44a7c27

Browse files
committed
fix(project-fork): correct path computation for project-fork list
1 parentde98e57 commit44a7c27

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

‎gitlab/v4/objects.py

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2049,7 +2049,7 @@ class ProjectFork(RESTObject):
20492049

20502050

20512051
classProjectForkManager(CreateMixin,ListMixin,RESTManager):
2052-
_path="/projects/%(project_id)s/fork"
2052+
_path="/projects/%(project_id)s/forks"
20532053
_obj_cls=ProjectFork
20542054
_from_parent_attrs= {"project_id":"id"}
20552055
_list_filters= (
@@ -2069,28 +2069,6 @@ class ProjectForkManager(CreateMixin, ListMixin, RESTManager):
20692069
)
20702070
_create_attrs= (tuple(), ("namespace",))
20712071

2072-
deflist(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-
returnListMixin.list(self,path=path,**kwargs)
2093-
20942072

20952073
classProjectHook(SaveMixin,ObjectDeleteMixin,RESTObject):
20962074
_short_print_attr="url"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp