License | BSD-3-Clause |
---|---|
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Safe Haskell | None |
Language | Haskell2010 |
The repo collaborators API as described on http://developer.github.com/v3/repos/collaborators/.
Synopsis
- collaboratorsOn :: Name Owner -> Name Repo -> IO (Either Error (Vector SimpleUser))
- collaboratorsOn' :: Maybe Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector SimpleUser))
- collaboratorsOnR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector SimpleUser)
- isCollaboratorOn :: Maybe Auth -> Name Owner -> Name Repo -> Name User -> IO (Either Error Bool)
- isCollaboratorOnR :: Name Owner -> Name Repo -> Name User -> GenRequest MtStatus rw Bool
- addCollaborator :: Auth -> Name Owner -> Name Repo -> Name User -> IO (Either Error ())
- addCollaboratorR :: Name Owner -> Name Repo -> Name User -> GenRequest MtUnit RW ()
- module GitHub.Data
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.
collaboratorsOnR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector SimpleUser) Source #
List collaborators. See https://developer.github.com/v3/repos/collaborators/#list-collaborators
:: 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"
:: Name Owner | Repository owner |
-> Name Repo | Repository name |
-> Name User | Collaborator? |
-> GenRequest MtStatus rw Bool |
Check if a user is a collaborator. See https://developer.github.com/v3/repos/collaborators/#check-if-a-user-is-a-collaborator
:: Name Owner | Repository owner |
-> Name Repo | Repository name |
-> Name User | Collaborator to add |
-> GenRequest MtUnit RW () |
Invite a user as a collaborator. See https://developer.github.com/v3/repos/collaborators/#add-user-as-a-collaborator
module GitHub.Data