Merge pull request #3 from Lunik/patch-1

Fix get_orgs for Users
pull/5/head
Langenfeld 2021-01-14 20:52:46 +01:00 zatwierdzone przez GitHub
commit d36f9706c9
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -159,7 +159,7 @@ class User(GiteaApiObject):
results = self.gitea.requests_get(url)
return [Repository.parse_response(self.gitea, result) for result in results]
def get_repositories(self) -> List[Organization]:
def get_orgs(self) -> List[Organization]:
""" Get all Organizations this user is a member of."""
url = f"/users/{self.username}/orgs"
results = self.gitea.requests_get(url)