mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
16 lines
364 B
Python
16 lines
364 B
Python
from GithubObject import *
|
|
|
|
from GitTree import GitTree
|
|
|
|
GitCommit = GithubObject(
|
|
"GitCommit",
|
|
BaseUrl( lambda obj: obj._repo._baseUrl() + "/git/commits/" + obj.sha ),
|
|
InternalSimpleAttributes(
|
|
"sha", "url", "message",
|
|
"parents",
|
|
"author", "committer",
|
|
"_repo",
|
|
),
|
|
InternalObjectAttribute( "tree", GitTree ),
|
|
)
|