|
|
@ -31,6 +31,8 @@ type CreateOrgOption struct { |
|
|
|
RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access"` |
|
|
|
RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access"` |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: make EditOrgOption fields optional after https://gitea.com/go-chi/binding/pulls/5 got merged
|
|
|
|
|
|
|
|
|
|
|
|
// EditOrgOption options for editing an organization
|
|
|
|
// EditOrgOption options for editing an organization
|
|
|
|
type EditOrgOption struct { |
|
|
|
type EditOrgOption struct { |
|
|
|
FullName string `json:"full_name"` |
|
|
|
FullName string `json:"full_name"` |
|
|
@ -40,5 +42,5 @@ type EditOrgOption struct { |
|
|
|
// possible values are `public`, `limited` or `private`
|
|
|
|
// possible values are `public`, `limited` or `private`
|
|
|
|
// enum: public,limited,private
|
|
|
|
// enum: public,limited,private
|
|
|
|
Visibility string `json:"visibility" binding:"In(,public,limited,private)"` |
|
|
|
Visibility string `json:"visibility" binding:"In(,public,limited,private)"` |
|
|
|
RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access"` |
|
|
|
RepoAdminChangeTeamAccess *bool `json:"repo_admin_change_team_access"` |
|
|
|
} |
|
|
|
} |
|
|
|