fix: Fixed the arguments in create_repo() function call (#31947)

* Fixed the arguments in create_repo() function call.

* Formatted the code properly using ruff.

* Formatted the code more clearly.
This commit is contained in:
Sai-Suraj-27 2024-07-15 20:26:17 +05:30 committed by GitHub
parent 907500423d
commit 556a4205f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -185,7 +185,7 @@ class RepoCreateCommand(BaseUserCommand):
print("Abort")
exit()
try:
url = create_repo(token, name=self.args.name, organization=self.args.organization)
url = create_repo(repo_id=full_name, token=token)
except HTTPError as e:
print(e)
print(ANSI.red(e.response.text))