Hello, I am trying to run a prefect flow triggered by when there is a change in a github repository that is NOT the repo that the prefect flow lives in. TLDR: pull request on repository A triggers prefect flow living in Repository B.
This is the closest I've come to figuring this out: https://docs.prefect.io/core/pins/pin-08-listener-flows.html
Has anyone done this before or have instructions?
k
Kevin Kho
02/28/2022, 10:11 PM
Hi @Apoorva Desai, our paradigm around this is triggering the Flow like this. You can hit the Prefect API with
Client.create_flow_run
or the
create_flow_run
task
Kevin Kho
02/28/2022, 10:12 PM
Or you can even use a Python request
a
Anna Geller
02/28/2022, 10:25 PM
could you explain the problem that you try to solve a bit more?
if you would like to just execute code from another repository, you could use pygit2:
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.