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
- webhooksForR :: Name Owner -> Name Repo -> FetchCount -> Request k (Vector RepoWebhook)
- webhookForR :: Name Owner -> Name Repo -> Id RepoWebhook -> Request k RepoWebhook
- createRepoWebhookR :: Name Owner -> Name Repo -> NewRepoWebhook -> Request RW RepoWebhook
- editRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> EditRepoWebhook -> Request RW RepoWebhook
- testPushRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> GenRequest MtStatus RW Bool
- pingRepoWebhookR :: Name Owner -> Name Repo -> Id RepoWebhook -> GenRequest MtStatus RW Bool
- 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
webhookForR :: Name Owner -> Name Repo -> Id RepoWebhook -> Request k RepoWebhook Source #
Create
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
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
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
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
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