I have a main branch that gets deploy to the production environment, and then I want only my feature branch to deploy to the previews environment, not any other branch.
How can I accomplish this? And how to accomplish this via API?
All branches besides default branch are deployed and assigned a url.