Updates GitTreeResponse for pagination (#141)
* Updates GitTreeResponse for pagination * Removes TotalPages
This commit is contained in:
parent
d5a42771e7
commit
b9e72373fb
1 changed files with 6 additions and 4 deletions
|
@ -24,6 +24,8 @@ type GitTreeResponse struct {
|
||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
Entries []GitEntry `json:"tree"`
|
Entries []GitEntry `json:"tree"`
|
||||||
Truncated bool `json:"truncated"`
|
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.
|
// GetTrees downloads a file of repository, ref can be branch/tag/commit.
|
||||||
|
|
Loading…
Reference in a new issue