License | BSD-3-Clause |
---|---|
Maintainer | Oleg Grenrus <oleg.grenrus@iki.fi> |
Safe Haskell | None |
Language | Haskell2010 |
The webhooks API, as described at https://developer.github.com/v3/repos/hooks/ https://developer.github.com/webhooks
Synopsis
- webhooksFor' :: Auth -> Name Owner -> Name Repo -> IO (Either Error (Vector RepoWebhook))
- webhooksForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector RepoWebhook)
- webhookFor' :: Auth -> Name Owner -> Name Repo -> Id RepoWebhook -> IO (Either Error RepoWebhook)
- webhookForR :: Name Owner -> Name Repo -> Id RepoWebhook -> Request k RepoWebhook
- createRepoWebhook' :: Auth -> Name Owner -> Name Repo -> NewRepoWebhook -> IO (Either Error RepoWebhook)
- createRepoWebhookR :: Name Owner -> Name Repo -> NewRepoWebhook -> Request RW RepoWebhook
- editRepoWebhook' :: Auth -> Name Owner -> Name Repo -> Id RepoWebhook -> EditRepoWebhook -> IO (Either Error RepoWebhook)
- editRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> EditRepoWebhook -> Request RW RepoWebhook
- testPushRepoWebhook' :: Auth -> Name Owner -> Name Repo -> Id RepoWebhook -> IO (Either Error Bool)
- testPushRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> GenRequest MtStatus RW Bool
- pingRepoWebhook' :: Auth -> Name Owner -> Name Repo -> Id RepoWebhook -> IO (Either Error Bool)
- pingRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> GenRequest MtStatus RW Bool
- deleteRepoWebhook' :: Auth -> Name Owner -> Name Repo -> Id RepoWebhook -> IO (Either Error ())
- deleteRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> GenRequest MtUnit RW ()
Querying repositories
webhooksForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector RepoWebhook) Source #
List hooks. See https://developer.github.com/v3/repos/hooks/#list-hooks
webhookFor' :: Auth -> Name Owner -> Name Repo -> Id RepoWebhook -> IO (Either Error RepoWebhook) Source #
webhookForR :: Name Owner -> Name Repo -> Id RepoWebhook -> Request k RepoWebhook Source #
Query single hook. See https://developer.github.com/v3/repos/hooks/#get-single-hook
Create
createRepoWebhook' :: Auth -> Name Owner -> Name Repo -> NewRepoWebhook -> IO (Either Error RepoWebhook) Source #
createRepoWebhookR :: Name Owner -> Name Repo -> NewRepoWebhook -> Request RW RepoWebhook Source #
Create a hook. See https://developer.github.com/v3/repos/hooks/#create-a-hook
Edit
editRepoWebhook' :: Auth -> Name Owner -> Name Repo -> Id RepoWebhook -> EditRepoWebhook -> IO (Either Error RepoWebhook) Source #
editRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> EditRepoWebhook -> Request RW RepoWebhook Source #
Edit a hook. See https://developer.github.com/v3/repos/hooks/#edit-a-hook
Test
testPushRepoWebhook' :: Auth -> Name Owner -> Name Repo -> Id RepoWebhook -> IO (Either Error Bool) Source #
testPushRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> GenRequest MtStatus RW Bool Source #
Test a push hook. See https://developer.github.com/v3/repos/hooks/#test-a-push-hook
pingRepoWebhook' :: Auth -> Name Owner -> Name Repo -> Id RepoWebhook -> IO (Either Error Bool) Source #
pingRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> GenRequest MtStatus RW Bool Source #
Ping a hook. See https://developer.github.com/v3/repos/hooks/#ping-a-hook
Delete
deleteRepoWebhook' :: Auth -> Name Owner -> Name Repo -> Id RepoWebhook -> IO (Either Error ()) Source #
deleteRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> GenRequest MtUnit RW () Source #
Delete a hook. See https://developer.github.com/v3/repos/hooks/#delete-a-hook