Fix ListIssue Functions (now respect ListIssueOption's)
#225
Merged
lunny
merged 10 commits from 6543/go-sdk:fix-some-stuff
into master
3 years ago
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '6543/go-sdk:fix-some-stuff'
Deleting a branch is permanent. It CANNOT be undone. Continue?
as title
@ -1,3 +1,4 @@
// Copyright 2020 The Gitea Authors. All rights reserved.
The line should below gogs'
@ -15,3 +15,2 @@
func (c *Client) AdminListUsers() ([]*User, error) {
users := make([]*User, 0, 10)
return users, c.getParsedResponse("GET", "/admin/users", nil, nil, &users)
users := make([]*User, 0, 50)
How about break the method?
what do you mean ?
@lunny ⬆️
I mean we could change the method signature.
I would move this to #205 ?
Update Dates; Fix /admin/users; Fix ListIssueOptionto Update Dates; Fix ListIssueOption 3 years ago@lunny I removed the questionable AdminListUsers pagination loop change
-> so paggination now shold be done compleatly in #205 ...
Update Dates; Fix ListIssueOptionto Fix ListIssue Functions (now respect ListIssueOption's) 3 years ago@ -58,3 +96,2 @@
func (c *Client) ListUserIssues(opt ListIssueOption) ([]*Issue, error) {
issues := make([]*Issue, 0, 10)
return issues, c.getParsedResponse("GET", fmt.Sprintf("/user/issues?page=%d", opt.Page), nil, nil, &issues)
//issues := make([]*Issue, 0, 10)
Why comment this but not just left it there?
I'll make a workaround witch let this function work ...
So it's blocked by another PR?
no, the endpint simply ont exist
4ea32995e4
(@bkcsoft) added this butCould you add some tests?
@lunny added Tests and format test output:
ready to merge 🚀
5612bf91d6
.Step 1:
From your project repository, check out a new branch and test the changes.Step 2:
Merge the changes and update on Gitea.