]> source.dussan.org Git - gitea.git/commitdiff
Add missing repo.projects unit into swagger (#14876)
authorzeripath <art27@cantab.net>
Wed, 3 Mar 2021 22:44:30 +0000 (22:44 +0000)
committerGitHub <noreply@github.com>
Wed, 3 Mar 2021 22:44:30 +0000 (23:44 +0100)
Fix #14875

Signed-off-by: Andrew Thornton <art27@cantab.net>
modules/structs/org_team.go
templates/swagger/v1_json.tmpl

index a742b7b224f913d7935859e42dd36030ce86c25f..3b2c5e78391e042637425270694f8f6682dcffd3 100644 (file)
@@ -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"`
 }
index 4a97650e56a73e38f8502ed4312228e716df907d..1b1d9e5c970fd58afa4ebf3b898c7dd4185d793b 100644 (file)
             "repo.wiki",
             "repo.pulls",
             "repo.releases",
+            "repo.projects",
             "repo.ext_wiki"
           ]
         }
             "repo.wiki",
             "repo.pulls",
             "repo.releases",
+            "repo.projects",
             "repo.ext_wiki"
           ]
         }
             "repo.wiki",
             "repo.pulls",
             "repo.releases",
+            "repo.projects",
             "repo.ext_wiki"
           ]
         }