aboutsummaryrefslogtreecommitdiffstats
path: root/modules/structs/repo_collaborator.go
diff options
context:
space:
mode:
authorJason Song <i@wolfogre.com>2024-08-01 17:33:40 +0800
committerGitHub <noreply@github.com>2024-08-01 09:33:40 +0000
commit333c9ed8cab961b6dd58b04edc47a57dc4d6dbab (patch)
tree4423dec9f69306e54d9017dc7591e2558cb523a5 /modules/structs/repo_collaborator.go
parenta33e74d40d356e8f628ac06a131cb203a3609dec (diff)
downloadgitea-333c9ed8cab961b6dd58b04edc47a57dc4d6dbab.tar.gz
gitea-333c9ed8cab961b6dd58b04edc47a57dc4d6dbab.zip
Add permission description for API to add repo collaborator (#31744)
Fix #31552.
Diffstat (limited to 'modules/structs/repo_collaborator.go')
-rw-r--r--modules/structs/repo_collaborator.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/structs/repo_collaborator.go b/modules/structs/repo_collaborator.go
index 946a6ec7e7..7d39b5a798 100644
--- a/modules/structs/repo_collaborator.go
+++ b/modules/structs/repo_collaborator.go
@@ -5,6 +5,7 @@ package structs
// AddCollaboratorOption options when adding a user as a collaborator of a repository
type AddCollaboratorOption struct {
+ // enum: read,write,admin
Permission *string `json:"permission"`
}