Template
1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo synced 2024-11-25 11:16:11 +01:00

Add permission description for API to add repo collaborator (#31744)

Fix #31552.

(cherry picked from commit 333c9ed8cab961b6dd58b04edc47a57dc4d6dbab)
This commit is contained in:
Jason Song 2024-08-01 17:33:40 +08:00 committed by Earl Warren
parent 6844258c67
commit f6b1407e4c
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 6 additions and 0 deletions

View file

@ -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"`
}

View file

@ -19925,6 +19925,11 @@
"properties": {
"permission": {
"type": "string",
"enum": [
"read",
"write",
"admin"
],
"x-go-name": "Permission"
}
},