aboutsummaryrefslogtreecommitdiffstats
path: root/modules/structs/org_team.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/structs/org_team.go')
-rw-r--r--modules/structs/org_team.go9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/structs/org_team.go b/modules/structs/org_team.go
index 5053468b4a..16f83823d6 100644
--- a/modules/structs/org_team.go
+++ b/modules/structs/org_team.go
@@ -15,7 +15,8 @@ type Team struct {
// enum: none,read,write,admin,owner
Permission string `json:"permission"`
// example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.ext_wiki"]
- Units []string `json:"units"`
+ Units []string `json:"units"`
+ CanCreateOrgRepo bool `json:"can_create_org_repo"`
}
// CreateTeamOption options for creating a team
@@ -27,7 +28,8 @@ type CreateTeamOption struct {
// enum: read,write,admin
Permission string `json:"permission"`
// example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.ext_wiki"]
- Units []string `json:"units"`
+ Units []string `json:"units"`
+ CanCreateOrgRepo bool `json:"can_create_org_repo"`
}
// EditTeamOption options for editing a team
@@ -39,5 +41,6 @@ type EditTeamOption struct {
// enum: read,write,admin
Permission string `json:"permission"`
// example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.ext_wiki"]
- Units []string `json:"units"`
+ Units []string `json:"units"`
+ CanCreateOrgRepo bool `json:"can_create_org_repo"`
}