We want to have a reliable way of receiving webhook messages from GitHub etc. Additionally, we want to subscribe to past and future webhooks also for development porposes.
Description
Add a webhook-ingest FastAPI service that can receive webhooks from GitHub and publishes them to NATS JetStorm.
We will host this soon on a server to collect GitHub data already. JetSteam will persist the messages and send them to any subscriber in the future.
Additionally, this PR adds a VSCode workspace since this was the only way of getting the venv to work for me with IntelliSense etc.
Testing
I hosted the NATS server temporarily on tls://nats.heph.felixdietrich.com with access token asdf, it receives all webhook events from the Hephaestus repo.
Motivation
We want to have a reliable way of receiving webhook messages from GitHub etc. Additionally, we want to subscribe to past and future webhooks also for development porposes.
Description
Add a
webhook-ingest
FastAPI service that can receive webhooks from GitHub and publishes them to NATS JetStorm.We will host this soon on a server to collect GitHub data already. JetSteam will persist the messages and send them to any subscriber in the future.
Additionally, this PR adds a VSCode workspace since this was the only way of getting the venv to work for me with IntelliSense etc.
Testing
I hosted the NATS server temporarily on
tls://nats.heph.felixdietrich.com
with access tokenasdf
, it receives all webhook events from the Hephaestus repo.Install
natscli
(Repo)Examples:
View past webhook data:
nats --server tls://asdf@nats.heph.felixdietrich.com stream view github
Subscribe to incoming webhooks and then interact with the Hephaestus Repo:
nats --server tls://asdf@nats.heph.felixdietrich.com sub "github.>"
Screenshots
Using
nats --server tls://asdf@nats.heph.felixdietrich.com stream subjects
:Checklist
General
Server