Skip to content

Commit

Permalink
Added a plan struct inside organization
Browse files Browse the repository at this point in the history
  • Loading branch information
hector-vido committed Nov 29, 2024
1 parent 8f1101b commit 7269bef
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions pkg/github/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1162,14 +1162,20 @@ type Organization struct {
BillingEmail string `json:"billing_email"`
Company string `json:"company"`
// Email is publicly visible
Email string `json:"email"`
Location string `json:"location"`
Name string `json:"name"`
Description string `json:"description"`
HasOrganizationProjects bool `json:"has_organization_projects"`
HasRepositoryProjects bool `json:"has_repository_projects"`
DefaultRepositoryPermission string `json:"default_repository_permission"`
MembersCanCreateRepositories bool `json:"members_can_create_repositories"`
Email string `json:"email"`
Location string `json:"location"`
Name string `json:"name"`
Description string `json:"description"`
HasOrganizationProjects bool `json:"has_organization_projects"`
HasRepositoryProjects bool `json:"has_repository_projects"`
DefaultRepositoryPermission string `json:"default_repository_permission"`
MembersCanCreateRepositories bool `json:"members_can_create_repositories"`
Plan OrgPlan `json:"plan"`
}

// OrgPlan contains the Plan fields for the organization plan (free, gold, silver, medium...)
type OrgPlan struct {
Name string `json:"name"`,
}

// OrgMembership contains Membership fields for user membership in an org.
Expand Down

0 comments on commit 7269bef

Please sign in to comment.