github-0.14.0: Access to the Github API, v3.

Safe HaskellNone
LanguageHaskell2010

Github.Repos.Collaborators

Description

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

Synopsis

Documentation

collaboratorsOn :: Name GithubOwner -> Name Repo -> IO (Either Error (Vector GithubOwner)) Source

All the users who have collaborated on a repo.

collaboratorsOn "thoughtbot" "paperclip"

collaboratorsOn' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error (Vector GithubOwner)) Source

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

isCollaboratorOn Source

Arguments

:: Maybe GithubAuth 
-> Name GithubOwner

Repository owner

-> Name Repo

Repository name

-> Name GithubOwner

Collaborator?

-> IO (Either Error Status) 

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"

TODO: GithubStatus

isCollaboratorOnR Source

Arguments

:: Name GithubOwner

Repository owner

-> Name Repo

Repository name

-> Name GithubOwner

Collaborator?

-> GithubRequest k Status