Browse Source

add some additional Membership fields

Will Norris 11 years ago
parent
commit
62a50bb14b
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      github/orgs_members.go

+ 9
- 0
github/orgs_members.go View File

@ -15,8 +15,17 @@ type Membership struct {
// Possible values are: "active", "pending" // Possible values are: "active", "pending"
State *string `json:"state,omitempty"` State *string `json:"state,omitempty"`
// TODO(willnorris): add docs
Role *string `json:"role,omitempty"`
// For organization membership, the API URL of the organization. // For organization membership, the API URL of the organization.
OrganizationURL *string `json:"organization_url,omitempty"` OrganizationURL *string `json:"organization_url,omitempty"`
// For organization membership, the organization the membership is for.
Organization *Organization `json:"organization,omitempty"`
// For organization membership, the user the membership is for.
User *User `json:"user,omitempty"`
} }
func (m Membership) String() string { func (m Membership) String() string {


Loading…
Cancel
Save