Nate
09/04/2024, 6:45 PMprefecthq/prefect
• serve a flow with a DeploymentEventTrigger that will expect github webhook events and template parameters from that event into a GitHubWebhookEvent (my class)
• store the event summary in a Variable , once we have a nice batch of events to summarize, use marvin.speak to 🗣️ a digest to me
if you want to run this for your own repo, I'll put instructions in the thread 🧵Nate
09/04/2024, 6:47 PM{
"event": "prefecthq/prefect {{body.action}}",
"resource": {
"prefect.resource.id": "prefecthq/prefect issue"
}
}
• go into your repo settings, New Webhook, paste webhook url and select application/json
• set any env vars you may be missing, like OPENAI_API_KEY or PREFECT_API_URL / api key
• uv run --no-project wherever_you_saved_this_file.py