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 575B

1234567891011121314151617
  1. // Copyright 2016 The Gogs Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package structs
  5. // AddCollaboratorOption options when adding a user as a collaborator of a repository
  6. type AddCollaboratorOption struct {
  7. Permission *string `json:"permission"`
  8. }
  9. // RepoCollaboratorPermission to get repository permission for a collaborator
  10. type RepoCollaboratorPermission struct {
  11. Permission string `json:"permission"`
  12. RoleName string `json:"role_name"`
  13. User *User `json:"user"`
  14. }