https://prefect.io logo
p

Pedro Martins

02/01/2021, 6:27 PM
How would one trigger a prefect flow from a github event? Let's say merging to master/main should trigger a new run.
z

Zanie

02/01/2021, 6:30 PM
Hi @Pedro Martins — you’d call the
create_flow_run
mutation. See https://docs.prefect.io/orchestration/concepts/flow_runs.html#ui
p

Pedro Martins

02/01/2021, 6:42 PM
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

Zanie

02/01/2021, 6:46 PM
You could do that or call the graphql API directly with
curl
🙌 1
👀 1