Skip to content

Commit 0bdeb2b

Browse files
authored
Add missing repo.projects unit into swagger (#14876)
Fix #14875 Signed-off-by: Andrew Thornton <[email protected]>
1 parent b2986ab commit 0bdeb2b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

modules/structs/org_team.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type Team struct {
1414
IncludesAllRepositories bool `json:"includes_all_repositories"`
1515
// enum: none,read,write,admin,owner
1616
Permission string `json:"permission"`
17-
// example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.ext_wiki"]
17+
// example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"]
1818
Units []string `json:"units"`
1919
CanCreateOrgRepo bool `json:"can_create_org_repo"`
2020
}
@@ -27,7 +27,7 @@ type CreateTeamOption struct {
2727
IncludesAllRepositories bool `json:"includes_all_repositories"`
2828
// enum: read,write,admin
2929
Permission string `json:"permission"`
30-
// example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.ext_wiki"]
30+
// example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"]
3131
Units []string `json:"units"`
3232
CanCreateOrgRepo bool `json:"can_create_org_repo"`
3333
}
@@ -40,7 +40,7 @@ type EditTeamOption struct {
4040
IncludesAllRepositories *bool `json:"includes_all_repositories"`
4141
// enum: read,write,admin
4242
Permission string `json:"permission"`
43-
// example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.ext_wiki"]
43+
// example: ["repo.code","repo.issues","repo.ext_issues","repo.wiki","repo.pulls","repo.releases","repo.projects","repo.ext_wiki"]
4444
Units []string `json:"units"`
4545
CanCreateOrgRepo *bool `json:"can_create_org_repo"`
4646
}

templates/swagger/v1_json.tmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12968,6 +12968,7 @@
1296812968
"repo.wiki",
1296912969
"repo.pulls",
1297012970
"repo.releases",
12971+
"repo.projects",
1297112972
"repo.ext_wiki"
1297212973
]
1297312974
}
@@ -13728,6 +13729,7 @@
1372813729
"repo.wiki",
1372913730
"repo.pulls",
1373013731
"repo.releases",
13732+
"repo.projects",
1373113733
"repo.ext_wiki"
1373213734
]
1373313735
}
@@ -15995,6 +15997,7 @@
1599515997
"repo.wiki",
1599615998
"repo.pulls",
1599715999
"repo.releases",
16000+
"repo.projects",
1599816001
"repo.ext_wiki"
1599916002
]
1600016003
}

0 commit comments

Comments
 (0)