Argo CD pull request generator example for creating preview apps when a Pull request is opened.
You can find the source code at https://github.com/kostis-codefresh/preview-env-manifests
Read the full blog at https://codefresh.io/blog/creating-temporary-preview-environments-based-pull-requests-argo-cd-codefresh/