You’ll find our blog post on the topic of programmatic creation of pipeline below and below that, a recently created example GitHub repository which contains an example pipelines repository.
Adding in a new pipeline and merging to the master/main branch depending on your main branch naming will create a new pipeline and adding a new project to an existing pipeline will add another GitHub repository as a trigger to a pipeline.
Programmatic Pipelines
Part 1: https://codefresh.io/devops-tutorial/programmatic-creation-codefresh-pipelines-part1/
Part 2: https://codefresh.io/devops-tutorial/programmatic-creation-codefresh-pipelines-part2/
New Example: https://github.com/salesdemocf/pipelines