Skip to content

Commit

Permalink
Add missing fields in AccountInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
hanwen authored and andygrunwald committed Aug 20, 2023
1 parent d2361a1 commit 999473b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ type AccountsService struct {

// AccountInfo entity contains information about an account.
//
// TODO Add field secondary_emails
// TODO Add field status
// TODO Add field inactive
// TODO Add field tags
//
// Gerrit API docs: https://gerrit-review.googlesource.com/Documentation/rest-api-accounts.html#account-info
type AccountInfo struct {
AccountID int `json:"_account_id,omitempty"`
Expand All @@ -32,7 +27,11 @@ type AccountInfo struct {
URL string `json:"url,omitempty"`
Height int `json:"height,omitempty"`
} `json:"avatars,omitempty"`
MoreAccounts bool `json:"_more_accounts,omitempty"`
MoreAccounts bool `json:"_more_accounts,omitempty"`
SecondaryEmails []string `json:"secondary_emails,omitempty"`
Status string `json:"status,omitempty"`
Inactive bool `json:"inactive,omitempty"`
Tags []string `json:"tags,omitempty"`
}

// QueryAccountOptions queries accounts visible to the caller.
Expand Down

0 comments on commit 999473b

Please sign in to comment.