Open developertom01 opened 3 weeks ago
Hey thanks for opening the issue! If you would like to give it a go, check out the these docs about how to create a node middleware: https://github.com/octokit/octokit.js?tab=readme-ov-file#webhooks
And these docs about what routes are exposed automatically for us: https://github.com/octokit/octokit.js?tab=readme-ov-file#app-server
We will need to configure/set a webhook secret to make it work.
Other todos:
This might also be useful as a reference. It's old and it uses Probot, but might have some useful insights: https://github.com/probot/example-netlify-functions/
Maybe, as a first step, create a function for a GET /api/health
route that simply responds with {"ok": true}
? We can use it for monitoring later and use it to play with the overall setup.