diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2018-11-11 03:45:32 +0800 |
---|---|---|
committer | techknowlogick <hello@techknowlogick.com> | 2018-11-10 14:45:32 -0500 |
commit | b3000ae623c30a58d3eb25c9fd7104db274381b7 (patch) | |
tree | 9905bc54b6d151baf2de69b4a9b3d41935f1e8be /vendor/code.gitea.io | |
parent | d487a76ee2843cc94ec6185dfdb676b4482dc8d8 (diff) | |
download | gitea-b3000ae623c30a58d3eb25c9fd7104db274381b7.tar.gz gitea-b3000ae623c30a58d3eb25c9fd7104db274381b7.zip |
Fix create team, update team missing units (#5188)
Diffstat (limited to 'vendor/code.gitea.io')
-rw-r--r-- | vendor/code.gitea.io/sdk/gitea/org_team.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/code.gitea.io/sdk/gitea/org_team.go b/vendor/code.gitea.io/sdk/gitea/org_team.go index 2fc6796d43..f3e98b932e 100644 --- a/vendor/code.gitea.io/sdk/gitea/org_team.go +++ b/vendor/code.gitea.io/sdk/gitea/org_team.go @@ -1,4 +1,5 @@ // Copyright 2016 The Gogs Authors. All rights reserved. +// Copyright 2018 The Gitea Authors. All rights reserved. // Use of this source code is governed by a MIT-style // license that can be found in the LICENSE file. @@ -11,6 +12,8 @@ type Team struct { Description string `json:"description"` // enum: none,read,write,admin,owner Permission string `json:"permission"` + // enum: repo.code,repo.issues,repo.ext_issues,repo.wiki,repo.pulls,repo.releases,repo.ext_wiki + Units []string `json:"units"` } // CreateTeamOption options for creating a team @@ -20,6 +23,8 @@ type CreateTeamOption struct { Description string `json:"description" binding:"MaxSize(255)"` // enum: read,write,admin Permission string `json:"permission"` + // enum: repo.code,repo.issues,repo.ext_issues,repo.wiki,repo.pulls,repo.releases,repo.ext_wiki + Units []string `json:"units"` } // EditTeamOption options for editing a team @@ -29,4 +34,6 @@ type EditTeamOption struct { Description string `json:"description" binding:"MaxSize(255)"` // enum: read,write,admin Permission string `json:"permission"` + // enum: repo.code,repo.issues,repo.ext_issues,repo.wiki,repo.pulls,repo.releases,repo.ext_wiki + Units []string `json:"units"` } |