Assigning a specific branch to previews?

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.

You can configure Ignored Build Step with a custom script to only allow deployments from specific branches.

There’s a guide with examples to get you started :smile:

1 Like

thanks. has to be no-code and only via api. otherwise i guess i can just pull deployments and filter on my backend

hello @amyegan i would love some help with this thanks!

The create a new project and update an existing project endpoints have a commandForIgnoringBuildStep param

dont know how i missed that! thanks!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.