github-0.23: Access to the GitHub API, v3.

LicenseBSD-3-Clause
MaintainerOleg Grenrus <oleg.grenrus@iki.fi>
Safe HaskellNone
LanguageHaskell2010

GitHub.Endpoints.Repos.Collaborators

Description

The repo collaborators API as described on http://developer.github.com/v3/repos/collaborators/.

Synopsis

Documentation

collaboratorsOn :: Name Owner -> Name Repo -> IO (Either Error (Vector SimpleUser)) Source #

All the users who have collaborated on a repo.

collaboratorsOn "thoughtbot" "paperclip"

collaboratorsOn' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector SimpleUser)) Source #

All the users who have collaborated on a repo. With authentication.

isCollaboratorOn Source #

Arguments

:: Maybe Auth 
-> Name Owner

Repository owner

-> Name Repo

Repository name

-> Name User

Collaborator?

-> IO (Either Error Bool) 

Whether the user is collaborating on a repo. Takes the user in question, the user who owns the repo, and the repo name.

isCollaboratorOn Nothing "mike-burns" "thoughtbot" "paperclip"
isCollaboratorOn Nothing "johnson" "thoughtbot" "paperclip"

isCollaboratorOnR Source #

Arguments

:: Name Owner

Repository owner

-> Name Repo

Repository name

-> Name User

Collaborator?

-> GenRequest MtStatus rw Bool 

addCollaborator Source #

Arguments

:: Auth 
-> Name Owner

Repository owner

-> Name Repo

Repository name

-> Name User

Collaborator to add

-> IO (Either Error (Maybe RepoInvitation)) 

addCollaboratorR Source #

Arguments

:: Name Owner

Repository owner

-> Name Repo

Repository name

-> Name User

Collaborator to add

-> GenRequest MtJSON RW (Maybe RepoInvitation)