Skip to content

Commit 9849a13

Browse files
committed
Add deprecated
1 parent a278fd1 commit 9849a13

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/structs/org_team.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ type CreateTeamOption struct {
3030
// enum: read,write,admin
3131
Permission string `json:"permission"`
3232
// example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"]
33+
// Deprecated: This variable should be replaced by UnitsMap and will be dropped in later versions.
3334
Units []string `json:"units"`
3435
// example: {"repo.code":"read","repo.issues":"write","repo.ext_issues":"none","repo.wiki":"admin","repo.pulls":"owner","repo.releases":"none","repo.projects":"none","repo.ext_wiki":"none"]
3536
UnitsMap map[string]string `json:"units_map"`
@@ -45,6 +46,7 @@ type EditTeamOption struct {
4546
// enum: read,write,admin
4647
Permission string `json:"permission"`
4748
// example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"]
49+
// Deprecated: This variable should be replaced by UnitsMap and will be dropped in later versions.
4850
Units []string `json:"units"`
4951
// example: {"repo.code":"read","repo.issues":"write","repo.ext_issues":"none","repo.wiki":"admin","repo.pulls":"owner","repo.releases":"none","repo.projects":"none","repo.ext_wiki":"none"]
5052
UnitsMap map[string]string `json:"units_map"`

0 commit comments

Comments
 (0)