diff options
author | zeripath <art27@cantab.net> | 2021-03-03 22:44:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-03 23:44:30 +0100 |
commit | 0bdeb2b3029dc46c3e409dc043d07bf36d581be5 (patch) | |
tree | 559c62aa4446f21386c49270fd1444c9780eb263 /modules/structs/org_team.go | |
parent | b2986ab8b2671c2779aa4a8b72cb7947c62402a4 (diff) | |
download | gitea-0bdeb2b3029dc46c3e409dc043d07bf36d581be5.tar.gz gitea-0bdeb2b3029dc46c3e409dc043d07bf36d581be5.zip |
Add missing repo.projects unit into swagger (#14876)
Fix #14875
Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'modules/structs/org_team.go')
-rw-r--r-- | modules/structs/org_team.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/structs/org_team.go b/modules/structs/org_team.go index a742b7b224..3b2c5e7839 100644 --- a/modules/structs/org_team.go +++ b/modules/structs/org_team.go @@ -14,7 +14,7 @@ type Team struct { IncludesAllRepositories bool `json:"includes_all_repositories"` // 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"] + // example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"] Units []string `json:"units"` CanCreateOrgRepo bool `json:"can_create_org_repo"` } @@ -27,7 +27,7 @@ type CreateTeamOption struct { IncludesAllRepositories bool `json:"includes_all_repositories"` // 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"] + // example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"] Units []string `json:"units"` CanCreateOrgRepo bool `json:"can_create_org_repo"` } @@ -40,7 +40,7 @@ type EditTeamOption struct { IncludesAllRepositories *bool `json:"includes_all_repositories"` // 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"] + // example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"] Units []string `json:"units"` CanCreateOrgRepo *bool `json:"can_create_org_repo"` } |