How would one trigger a prefect flow from a github...
# ask-community
p
How would one trigger a prefect flow from a github event? Let's say merging to master/main should trigger a new run.
z
Hi @Pedro Martins — you’d call the
create_flow_run
mutation. See https://docs.prefect.io/orchestration/concepts/flow_runs.html#ui
p
Thanks @Zanie. In this case I'd have to start a CI script upon a merge that spins up a docker container with prefect and call the mutation, right?
z
You could do that or call the graphql API directly with
curl
🙌 1
👀 1