kopia lustrzana https://github.com/Langenfeld/py-gitea
small convenience feature
now you can also pass a user to org.remove_member.pull/1/head
rodzic
8873ee0959
commit
3c416c46ee
|
@ -139,6 +139,8 @@ class Organization:
|
|||
self.__initialize_org(self.username, result)
|
||||
|
||||
def remove_member(self, username):
|
||||
if isinstance(username, User):
|
||||
username = username.username
|
||||
path = "/orgs/" + self.username + "/members/" + username
|
||||
self.gitea.requests_delete(path)
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue