edgurgel / tentacat

Simple Elixir wrapper for the GitHub API

Home Page:https://hexdocs.pm/tentacat

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does tentacat support anything for registering webhooks?

fire opened this issue · comments

Is this the correct library to listen for webhook responses?

@fire, if I understood well you want to receive the webhook instead of creating/listing/deleting them. Tentacat wasn't meant to be used as part of the receiving part. Although it should be pretty straightforward to build an HTTP endpoint inside your server to receive these events with payloads.

If you describe briefly how, that could work, I would be grateful.

Trying to create a "chat bot" that listens to github issue / pr comments and then does tasks.

Here's the official documentation: https://developer.github.com/webhooks/

As you can see it's a single endpoint that you need to create. There's an example on how to start something

I hope little advertise is not forbidden.
@fire, this is my simple webhook library in Elixir (Zlib license, using Plug).

Awesome, @Marqin. Thanks for sharing 👍