Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit b9e7237

Browse files
richmahntechknowlogick
authored andcommitted
Updates GitTreeResponse for pagination (#141)
* Updates GitTreeResponse for pagination * Removes TotalPages
1 parent d5a4277 commit b9e7237

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

gitea/repo_tree.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ type GitEntry struct {
2020

2121
// GitTreeResponse returns a git tree
2222
type GitTreeResponse struct {
23-
SHA string `json:"sha"`
24-
URL string `json:"url"`
25-
Entries []GitEntry `json:"tree"`
26-
Truncated bool `json:"truncated"`
23+
SHA string `json:"sha"`
24+
URL string `json:"url"`
25+
Entries []GitEntry `json:"tree"`
26+
Truncated bool `json:"truncated"`
27+
Page int `json:"page"`
28+
TotalCount int `json:"total_count"`
2729
}
2830

2931
// GetTrees downloads a file of repository, ref can be branch/tag/commit.

0 commit comments

Comments
 (0)