Safe Haskell | None |
---|---|
Language | Haskell2010 |
The repo collaborators API as described on http://developer.github.com/v3/repos/collaborators/.
- collaboratorsOn :: Name GithubOwner -> Name Repo -> IO (Either Error (Vector GithubOwner))
- collaboratorsOn' :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> IO (Either Error (Vector GithubOwner))
- collaboratorsOnR :: Name GithubOwner -> Name Repo -> Maybe Count -> GithubRequest k (Vector GithubOwner)
- isCollaboratorOn :: Maybe GithubAuth -> Name GithubOwner -> Name Repo -> Name GithubOwner -> IO (Either Error Status)
- isCollaboratorOnR :: Name GithubOwner -> Name Repo -> Name GithubOwner -> GithubRequest k Status
- module Github.Data
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.
collaboratorsOnR :: Name GithubOwner -> Name Repo -> Maybe Count -> GithubRequest k (Vector GithubOwner) Source
List collaborators. See https://developer.github.com/v3/repos/collaborators/#list-collaborators
:: 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
:: Name GithubOwner | Repository owner |
-> Name Repo | Repository name |
-> Name GithubOwner | Collaborator? |
-> GithubRequest k Status |
Check if a user is a collaborator. See https://developer.github.com/v3/repos/collaborators/#check-if-a-user-is-a-collaborator
module Github.Data