選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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. }