kopia lustrzana https://github.com/Langenfeld/py-gitea
added org.remove_member
rodzic
70df8b09be
commit
af9cbc0f61
|
@ -3,7 +3,7 @@ import requests
|
|||
import logging
|
||||
|
||||
logging = logging.getLogger("gitea")
|
||||
version = "0.4.0"
|
||||
version = "0.4.1"
|
||||
|
||||
|
||||
class AlreadyExistsException(Exception):
|
||||
|
@ -138,6 +138,10 @@ class Organization:
|
|||
)
|
||||
self.__initialize_org(self.username, result)
|
||||
|
||||
def remove_member(self, username):
|
||||
path = "/orgs/" + self.username + "/members/" + username
|
||||
self.gitea.requests_delete(path)
|
||||
|
||||
def delete(self):
|
||||
""" Delete this Organization. Invalidates this Objects data.
|
||||
Also deletes all Repositories and Teams associated with this
|
||||
|
|
Ładowanie…
Reference in New Issue