Skip to content

Commit

Permalink
Fix #92: Add _more_accounts attribute and start parameter to paginate…
Browse files Browse the repository at this point in the history
… through SuggestAccount results

Original PR: #92
AccountInfo: https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#account-info
  • Loading branch information
andygrunwald committed Sep 15, 2021
1 parent 668ecf2 commit 101051e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ type AccountInfo struct {
URL string `json:"url,omitempty"`
Height int `json:"height,omitempty"`
} `json:"avatars,omitempty"`
MoreAccounts bool `json:"_more_accounts,omitempty"`
}

// SSHKeyInfo entity contains information about an SSH key of a user.
Expand Down
3 changes: 3 additions & 0 deletions changes.go
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,9 @@ type QueryOptions struct {
// The n parameter can be used to limit the returned results.
// If the n query parameter is supplied and additional changes exist that match the query beyond the end, the last change object has a _more_changes: true JSON field set.
Limit int `url:"n,omitempty"`

// The S or start query parameter can be supplied to skip a number of changes from the list.
Start int `url:"start,omitempty"`
}

// QueryChangeOptions specifies the parameters to the ChangesService.QueryChanges.
Expand Down

0 comments on commit 101051e

Please sign in to comment.