-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix!: Fix pagination support for IssuesService list methods
#3984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
181d685
5ba7d6c
fc21140
90ce022
ab4224b
2b7815a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -105,25 +105,25 @@ type IssueRequest struct { | |
| type IssueListOptions struct { | ||
| // Filter specifies which issues to list. Possible values are: assigned, | ||
| // created, mentioned, subscribed, all. Default is "assigned". | ||
| Filter string `url:"filter,omitempty"` | ||
| Filter *string `url:"filter,omitempty"` | ||
|
|
||
| // State filters issues based on their state. Possible values are: open, | ||
| // closed, all. Default is "open". | ||
| State string `url:"state,omitempty"` | ||
| State *string `url:"state,omitempty"` | ||
|
|
||
| // Labels filters issues based on their label. | ||
| Labels []string `url:"labels,comma,omitempty"` | ||
|
|
||
| // Sort specifies how to sort issues. Possible values are: created, updated, | ||
| // and comments. Default value is "created". | ||
| Sort string `url:"sort,omitempty"` | ||
| Sort *string `url:"sort,omitempty"` | ||
|
|
||
| // Direction in which to sort issues. Possible values are: asc, desc. | ||
| // Default is "desc". | ||
| Direction string `url:"direction,omitempty"` | ||
| Direction *string `url:"direction,omitempty"` | ||
|
|
||
| // Since filters issues by time. | ||
| Since time.Time `url:"since,omitempty"` | ||
| Since *time.Time `url:"since,omitempty"` | ||
|
|
||
| ListCursorOptions | ||
|
|
||
|
|
@@ -245,11 +245,8 @@ type IssueListByRepoOptions struct { | |
| // Since filters issues by time. | ||
| Since time.Time `url:"since,omitempty"` | ||
|
|
||
| // ListCursorOptions specifies the optional parameters for cursor pagination. | ||
| ListCursorOptions | ||
|
|
||
| // Add ListOptions so offset pagination with integer type "page" query parameter is accepted | ||
| // since ListCursorOptions accepts "page" as string only. | ||
| ListOptions | ||
|
Comment on lines
-249
to
-252
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't remove |
||
| } | ||
|
|
||
| // ListByRepo lists the issues for the specified repository. | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.