:wave: i'll share a fun flow I'm using to stay on ...
# show-and-tell
n
👋 i'll share a fun flow I'm using to stay on top of happenings in
prefecthq/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 🧵
🚀 5
upvote 5
5
marvin 7
• create a webhook in prefect cloud that looks like this
Copy code
{
  "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