diff --git a/gitea/gitea.py b/gitea/gitea.py index c68fc85..41b0ce3 100644 --- a/gitea/gitea.py +++ b/gitea/gitea.py @@ -13,6 +13,8 @@ from .giteaApiObject import GiteaApiObject class Organization(GiteaApiObject): + """see https://try.gitea.io/api/swagger#/organization/orgGetAll""" + GET_API_OBJECT = """/orgs/{name}""" # PATCH_API_OBJECT = """/orgs/{name}""" # ORG_REPOS_REQUEST = """/orgs/%s/repos""" # @@ -197,8 +199,8 @@ class Branch(GiteaApiObject): class Repository(GiteaApiObject): REPO_IS_COLLABORATOR = ( - """/repos/%s/%s/collaborators/%s""" - ) # , , + """/repos/%s/%s/collaborators/%s""" # , , + ) GET_API_OBJECT = """/repos/{owner}/{name}""" # , REPO_SEARCH = """/repos/search/%s""" # REPO_BRANCHES = """/repos/%s/%s/branches""" # , @@ -362,8 +364,8 @@ class Repository(GiteaApiObject): class Milestone(GiteaApiObject): GET_API_OBJECT = ( - """/repos/{owner}/{repo}/milestones/{number}""" - ) # + """/repos/{owner}/{repo}/milestones/{number}""" # + ) def __init__(self, gitea, id: int): super(Milestone, self).__init__(gitea, id=id)