You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

repo_collaborator.go 503B

12345678910111213141516
  1. // Copyright 2016 The Gogs Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package structs
  4. // AddCollaboratorOption options when adding a user as a collaborator of a repository
  5. type AddCollaboratorOption struct {
  6. Permission *string `json:"permission"`
  7. }
  8. // RepoCollaboratorPermission to get repository permission for a collaborator
  9. type RepoCollaboratorPermission struct {
  10. Permission string `json:"permission"`
  11. RoleName string `json:"role_name"`
  12. User *User `json:"user"`
  13. }