Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

Commit 4f96d9a

Browse files
authored
add units for team (#127)
1 parent c740b5d commit 4f96d9a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

gitea/org_team.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// Copyright 2016 The Gogs Authors. All rights reserved.
2+
// Copyright 2018 The Gitea Authors. All rights reserved.
23
// Use of this source code is governed by a MIT-style
34
// license that can be found in the LICENSE file.
45

@@ -11,6 +12,8 @@ type Team struct {
1112
Description string `json:"description"`
1213
// enum: none,read,write,admin,owner
1314
Permission string `json:"permission"`
15+
// enum: repo.code,repo.issues,repo.ext_issues,repo.wiki,repo.pulls,repo.releases,repo.ext_wiki
16+
Units []string `json:"units"`
1417
}
1518

1619
// CreateTeamOption options for creating a team
@@ -20,6 +23,8 @@ type CreateTeamOption struct {
2023
Description string `json:"description" binding:"MaxSize(255)"`
2124
// enum: read,write,admin
2225
Permission string `json:"permission"`
26+
// enum: repo.code,repo.issues,repo.ext_issues,repo.wiki,repo.pulls,repo.releases,repo.ext_wiki
27+
Units []string `json:"units"`
2328
}
2429

2530
// EditTeamOption options for editing a team
@@ -29,4 +34,6 @@ type EditTeamOption struct {
2934
Description string `json:"description" binding:"MaxSize(255)"`
3035
// enum: read,write,admin
3136
Permission string `json:"permission"`
37+
// enum: repo.code,repo.issues,repo.ext_issues,repo.wiki,repo.pulls,repo.releases,repo.ext_wiki
38+
Units []string `json:"units"`
3239
}

0 commit comments

Comments
 (0)