Skip to content

Commit

Permalink
Add permission description for API to add repo collaborator (#31744)
Browse files Browse the repository at this point in the history
Fix #31552.
  • Loading branch information
wolfogre authored Aug 1, 2024
1 parent a33e74d commit 333c9ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/structs/repo_collaborator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

Expand Down
5 changes: 5 additions & 0 deletions templates/swagger/v1_json.tmpl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 333c9ed

Please sign in to comment.