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

Safe HaskellNone

Github.Repos.Collaborators

Description

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

Synopsis

Documentation

collaboratorsOn :: String -> String -> IO (Either Error [GithubOwner])Source

All the users who have collaborated on a repo.

 collaboratorsOn "thoughtbot" "paperclip"

isCollaboratorOn :: String -> String -> String -> IO (Either Error Bool)Source

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

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