Skip to content

Commit 101051e

Browse files
committed
Fix #92: Add _more_accounts attribute and start parameter to paginate through SuggestAccount results
Original PR: #92 AccountInfo: https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#account-info
1 parent 668ecf2 commit 101051e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

accounts.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ type AccountInfo struct {
2424
URL string `json:"url,omitempty"`
2525
Height int `json:"height,omitempty"`
2626
} `json:"avatars,omitempty"`
27+
MoreAccounts bool `json:"_more_accounts,omitempty"`
2728
}
2829

2930
// SSHKeyInfo entity contains information about an SSH key of a user.

changes.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,9 @@ type QueryOptions struct {
479479
// The n parameter can be used to limit the returned results.
480480
// 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.
481481
Limit int `url:"n,omitempty"`
482+
483+
// The S or start query parameter can be supplied to skip a number of changes from the list.
484+
Start int `url:"start,omitempty"`
482485
}
483486

484487
// QueryChangeOptions specifies the parameters to the ChangesService.QueryChanges.

0 commit comments

Comments
 (0)