I looked around for this, but couldn’t find any information on it. Does this already exist?
Our organization uses OneFlow, which essentially has four types of branches:
- Release branches, which are prefixed with
- Hotfix branches, which are prefixed with
- Feature branches, which don’t have a prefix and can be named anything.
- The production branch, which is named
For this flow, we’d like to have branch deploys (and especially Deploy Previews) running on any pull request targeting
master, OR targeting a branch starting with
hotfix/, but not on feature branches.
I can see that the Deploy Context settings allows me to add individual named branches, but it does not seem to support wildcards the way that GitHub does for branch protection, for example.
Is there any way to accomplish this with Netlify, or do I just have to build for all branches? And if there isn’t, would you consider adding support for wildcard branches?