Files
PyGithub/github/GithubObjects/GitTree.py
T

12 lines
291 B
Python

from GithubObject import *
GitTree = GithubObject(
"GitTree",
BaseUrl( lambda obj: obj._repo._baseUrl() + "/git/trees/" + obj.sha + "?recursive=1" if obj.recursive else "" ),
InternalSimpleAttributes(
"sha", "url",
"tree",
"_repo", "recursive",
),
)