diff --git a/gitea/gitea.py b/gitea/gitea.py index de827fd..72b23cc 100644 --- a/gitea/gitea.py +++ b/gitea/gitea.py @@ -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