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

Fix #31552.
This commit is contained in:
Jason Song 2024-08-01 17:33:40 +08:00 committed by GitHub
parent a33e74d40d
commit 333c9ed8ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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

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