kopia lustrzana https://github.com/Langenfeld/py-gitea
fixed exceptions from trying to request git-committers from gitea (fixes #4)
rodzic
ac41c212b4
commit
4ccdc39ff4
|
@ -439,7 +439,10 @@ class Commit(GiteaApiObject):
|
||||||
def __init__(self, gitea, id: int):
|
def __init__(self, gitea, id: int):
|
||||||
super(Commit, self).__init__(gitea, id=id)
|
super(Commit, self).__init__(gitea, id=id)
|
||||||
|
|
||||||
fields_to_parsers = {"author": lambda gitea, u: User.parse_response(gitea, u)}
|
fields_to_parsers = {
|
||||||
|
# NOTE: do not try to parse gitea-users from git-committers/authors, as
|
||||||
|
# they are not necessarily users of gitea as well
|
||||||
|
}
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def request(cls, gitea, owner, repo):
|
def request(cls, gitea, owner, repo):
|
||||||
|
|
Ładowanie…
Reference in New Issue