From 62a50bb14ba982864a5f54e344d0e05764fb41b1 Mon Sep 17 00:00:00 2001 From: Will Norris Date: Tue, 18 Nov 2014 15:15:25 -0800 Subject: [PATCH] add some additional Membership fields --- github/orgs_members.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/github/orgs_members.go b/github/orgs_members.go index 02eb13a..ae6f579 100644 --- a/github/orgs_members.go +++ b/github/orgs_members.go @@ -15,8 +15,17 @@ type Membership struct { // Possible values are: "active", "pending" State *string `json:"state,omitempty"` + // TODO(willnorris): add docs + Role *string `json:"role,omitempty"` + // For organization membership, the API URL of the organization. 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 {