Updates GitTreeResponse for pagination (#141)

* Updates GitTreeResponse for pagination

* Removes TotalPages
This commit is contained in:
Richard Mahn 2019-02-04 21:58:10 -07:00 committed by techknowlogick
parent d5a42771e7
commit b9e72373fb

View file

@ -20,10 +20,12 @@ type GitEntry struct {
// GitTreeResponse returns a git tree
type GitTreeResponse struct {
SHA string `json:"sha"`
URL string `json:"url"`
Entries []GitEntry `json:"tree"`
Truncated bool `json:"truncated"`
SHA string `json:"sha"`
URL string `json:"url"`
Entries []GitEntry `json:"tree"`
Truncated bool `json:"truncated"`
Page int `json:"page"`
TotalCount int `json:"total_count"`
}
// GetTrees downloads a file of repository, ref can be branch/tag/commit.