Moe
08/29/2024, 4:56 PMfrom prefect import flow
my_flow = flow.from_source(
source="<https://github.com/PrefectHQ/prefect.git>",
entrypoint="flows/hello_world.py:hello"
)
if __name__ == "__main__":
my_flow()
What if my flow script is not in main branch but in a feature branch, is there a way to specify branch name? I know with prefect.yaml file, there is a way to specify this.Emil Christensen
08/29/2024, 5:00 PMEmil Christensen
08/29/2024, 5:01 PMfrom prefect.runner.storage import GitRepository
from prefect.blocks.system import Secret
flow.from_source(
source=GitRepository(
url="<https://github.com/org/private-repo.git>",
branch="dev",
)
Moe
08/29/2024, 5:04 PMKamal
08/29/2024, 8:36 PM