diff --git a/gitlab/v4/objects/groups.py b/gitlab/v4/objects/groups.py index 7de4f8437..b4df4a93d 100644 --- a/gitlab/v4/objects/groups.py +++ b/gitlab/v4/objects/groups.py @@ -72,9 +72,9 @@ class Group(SaveMixin, ObjectDeleteMixin, RESTObject): variables: GroupVariableManager wikis: GroupWikiManager - @cli.register_custom_action("Group", ("to_project_id",)) + @cli.register_custom_action("Group", ("project_id",)) @exc.on_http_error(exc.GitlabTransferProjectError) - def transfer_project(self, to_project_id, **kwargs): + def transfer_project(self, project_id, **kwargs): """Transfer a project to this group. Args: @@ -85,7 +85,7 @@ def transfer_project(self, to_project_id, **kwargs): GitlabAuthenticationError: If authentication is not correct GitlabTransferProjectError: If the project could not be transfered """ - path = "/groups/%s/projects/%s" % (self.id, to_project_id) + path = "/groups/%s/projects/%s" % (self.id, project_id) self.manager.gitlab.http_post(path, **kwargs) @cli.register_custom_action("Group", ("scope", "search"))
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: