mirror of
https://github.com/go-gitea/gitea.git
synced 2025-11-05 21:35:59 +01:00
Update gitea/sdk vendor
This commit is contained in:
2
vendor/code.gitea.io/sdk/gitea/repo_collaborator.go
generated
vendored
2
vendor/code.gitea.io/sdk/gitea/repo_collaborator.go
generated
vendored
@@ -10,10 +10,12 @@ import (
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// AddCollaboratorOption options when add some user as a collaborator of a repository
|
||||
type AddCollaboratorOption struct {
|
||||
Permission *string `json:"permission"`
|
||||
}
|
||||
|
||||
// AddCollaborator add some user as a collaborator of a repository
|
||||
func (c *Client) AddCollaborator(user, repo, collaborator string, opt AddCollaboratorOption) error {
|
||||
body, err := json.Marshal(&opt)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user