FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(objects): rename confusing `to_project_id` argument by nejch · Pull Request #1599 · python-gitlab/python-gitlab · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
6 changes: 3 additions & 3 deletions gitlab/v4/objects/groups.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"))
Expand Down

Back | FazBrowse Home | New Git URL