|
|
@ -14,7 +14,7 @@ type Team struct { |
|
|
|
IncludesAllRepositories bool `json:"includes_all_repositories"` |
|
|
|
IncludesAllRepositories bool `json:"includes_all_repositories"` |
|
|
|
// enum: none,read,write,admin,owner
|
|
|
|
// enum: none,read,write,admin,owner
|
|
|
|
Permission string `json:"permission"` |
|
|
|
Permission string `json:"permission"` |
|
|
|
// example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.ext_wiki"]
|
|
|
|
// example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"]
|
|
|
|
Units []string `json:"units"` |
|
|
|
Units []string `json:"units"` |
|
|
|
CanCreateOrgRepo bool `json:"can_create_org_repo"` |
|
|
|
CanCreateOrgRepo bool `json:"can_create_org_repo"` |
|
|
|
} |
|
|
|
} |
|
|
@ -27,7 +27,7 @@ type CreateTeamOption struct { |
|
|
|
IncludesAllRepositories bool `json:"includes_all_repositories"` |
|
|
|
IncludesAllRepositories bool `json:"includes_all_repositories"` |
|
|
|
// enum: read,write,admin
|
|
|
|
// enum: read,write,admin
|
|
|
|
Permission string `json:"permission"` |
|
|
|
Permission string `json:"permission"` |
|
|
|
// example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.ext_wiki"]
|
|
|
|
// example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"]
|
|
|
|
Units []string `json:"units"` |
|
|
|
Units []string `json:"units"` |
|
|
|
CanCreateOrgRepo bool `json:"can_create_org_repo"` |
|
|
|
CanCreateOrgRepo bool `json:"can_create_org_repo"` |
|
|
|
} |
|
|
|
} |
|
|
@ -40,7 +40,7 @@ type EditTeamOption struct { |
|
|
|
IncludesAllRepositories *bool `json:"includes_all_repositories"` |
|
|
|
IncludesAllRepositories *bool `json:"includes_all_repositories"` |
|
|
|
// enum: read,write,admin
|
|
|
|
// enum: read,write,admin
|
|
|
|
Permission string `json:"permission"` |
|
|
|
Permission string `json:"permission"` |
|
|
|
// example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.ext_wiki"]
|
|
|
|
// example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"]
|
|
|
|
Units []string `json:"units"` |
|
|
|
Units []string `json:"units"` |
|
|
|
CanCreateOrgRepo *bool `json:"can_create_org_repo"` |
|
|
|
CanCreateOrgRepo *bool `json:"can_create_org_repo"` |
|
|
|
} |
|
|
|
} |
|
|
|