mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 03:11:09 +00:00
Spliting GithubObjects.py
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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 ),
|
||||
)
|
||||
Reference in New Issue
Block a user