mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 03:41:08 +00:00
Git objects
This commit is contained in:
+12
-13
@@ -144,19 +144,6 @@ GitRef = GithubObject(
|
||||
Editable( [ "sha" ], [ "force" ] ),
|
||||
)
|
||||
|
||||
GitCommit = GithubObject(
|
||||
"GitCommit",
|
||||
BaseUrl( lambda obj: obj._repo._baseUrl + "/git/commits/" + obj.sha ),
|
||||
InternalSimpleAttributes(
|
||||
"sha", "url", "message",
|
||||
"author", ### @todo Structure
|
||||
"committer", ### @todo Structure
|
||||
"tree", ### @todo Structure
|
||||
"parents", ### @todo Structure
|
||||
"_repo", ### Ugly hack
|
||||
),
|
||||
)
|
||||
|
||||
GitTree = GithubObject(
|
||||
"GitTree",
|
||||
BaseUrl( lambda obj: obj._repo._baseUrl + "/git/trees/" + obj.sha ),
|
||||
@@ -167,6 +154,18 @@ GitTree = GithubObject(
|
||||
),
|
||||
)
|
||||
|
||||
GitCommit = GithubObject(
|
||||
"GitCommit",
|
||||
BaseUrl( lambda obj: obj._repo._baseUrl + "/git/commits/" + obj.sha ),
|
||||
InternalSimpleAttributes(
|
||||
"sha", "url", "message",
|
||||
"parents", ### @todo Structure
|
||||
"author", "committer",
|
||||
"_repo", ### Ugly hack
|
||||
),
|
||||
InternalObjectAttribute( "tree", GitTree ),
|
||||
)
|
||||
|
||||
GitBlob = GithubObject(
|
||||
"GitBlob",
|
||||
BaseUrl( lambda obj: obj._repo._baseUrl + "/git/blobs/" + obj.sha ),
|
||||
|
||||
Reference in New Issue
Block a user