Skip to content

Commit 333c9ed

Browse files
authored
Add permission description for API to add repo collaborator (#31744)
Fix #31552.
1 parent a33e74d commit 333c9ed

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

modules/structs/repo_collaborator.go

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package structs
55

66
// AddCollaboratorOption options when adding a user as a collaborator of a repository
77
type AddCollaboratorOption struct {
8+
// enum: read,write,admin
89
Permission *string `json:"permission"`
910
}
1011

templates/swagger/v1_json.tmpl

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)