diff options
Diffstat (limited to 'vendor/github.com/google/go-github/github/repos_collaborators.go')
-rw-r--r-- | vendor/github.com/google/go-github/github/repos_collaborators.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/github.com/google/go-github/github/repos_collaborators.go b/vendor/github.com/google/go-github/github/repos_collaborators.go index a19a14a..ddb88f5 100644 --- a/vendor/github.com/google/go-github/github/repos_collaborators.go +++ b/vendor/github.com/google/go-github/github/repos_collaborators.go @@ -9,7 +9,7 @@ import "fmt" // ListCollaborators lists the Github users that have access to the repository. // -// GitHub API docs: http://developer.github.com/v3/repos/collaborators/#list +// GitHub API docs: https://developer.github.com/v3/repos/collaborators/#list func (s *RepositoriesService) ListCollaborators(owner, repo string, opt *ListOptions) ([]*User, *Response, error) { u := fmt.Sprintf("repos/%v/%v/collaborators", owner, repo) u, err := addOptions(u, opt) @@ -36,7 +36,7 @@ func (s *RepositoriesService) ListCollaborators(owner, repo string, opt *ListOpt // Note: This will return false if the user is not a collaborator OR the user // is not a GitHub user. // -// GitHub API docs: http://developer.github.com/v3/repos/collaborators/#get +// GitHub API docs: https://developer.github.com/v3/repos/collaborators/#get func (s *RepositoriesService) IsCollaborator(owner, repo, user string) (bool, *Response, error) { u := fmt.Sprintf("repos/%v/%v/collaborators/%v", owner, repo, user) req, err := s.client.NewRequest("GET", u, nil) @@ -87,7 +87,7 @@ type RepositoryAddCollaboratorOptions struct { // push - team members can pull and push, but not administer this repository // admin - team members can pull, push and administer this repository // - // Default value is "push". This option is only valid for organization-owned repositories. + // Default value is "push". This option is only valid for organization-owned repositories. Permission string `json:"permission,omitempty"` } @@ -110,7 +110,7 @@ func (s *RepositoriesService) AddCollaborator(owner, repo, user string, opt *Rep // RemoveCollaborator removes the specified Github user as collaborator from the given repo. // Note: Does not return error if a valid user that is not a collaborator is removed. // -// GitHub API docs: http://developer.github.com/v3/repos/collaborators/#remove-collaborator +// GitHub API docs: https://developer.github.com/v3/repos/collaborators/#remove-collaborator func (s *RepositoriesService) RemoveCollaborator(owner, repo, user string) (*Response, error) { u := fmt.Sprintf("repos/%v/%v/collaborators/%v", owner, repo, user) req, err := s.client.NewRequest("DELETE", u, nil) |