Click here to Skip to main content
13,833,837 members
Click here to Skip to main content
Add your own
alternative version

Tagged as


Posted 12 Mar 2018
Licenced MIT

Setting Wild Card Branch Policies in @VSTS

, 12 Mar 2018
Rate this:
Please Sign up or sign in to vote.
How to set wild card branch policies in @VSTS

I’ve probably mentioned it before but keeping up with what’s happening with VSTS is incredible hard with their 3 week cadence and generally huge set of features each 3 weeks. This week at MVP Summit, I had what I thought would be a cool request to allow wild card branch policies. I was thinking of writing a console app to do this but thought it would be interesting to ask the product group as it’s part of the many benefits of being a MVP Smile.

The Ask

So the ask is that instead of each time I create a new branch I need to set the branch policies, I want to be able to set what the policies are before those branches are created. So basically, I would create a branch for release/* branches and then never worry that the policy is not set in the future.

The Solution

As with many other productivity requests, I generally have the individual PMs I was told by Jeremy Epling that this already exists today. Seems I missed another great feature in VSTS Smile with tongue out. To get started, you need to make sure you have a branch under the folder you would like to set the policy. This could mean you create a temporary branch just to set the branch policy.

Once created, you can:

  1. Click on the ellipse on the folder and then
  2. Branch policies


and then you can set the policies for any branches created under this folder, you should notice the /* in the branch name that you are setting the policies for.


Once you change the policy, you are able to delete the temp branch that has been created and any new branches in this path will automatically inherit the policies created.


There is a lot of great functionality in VSTS and sometimes if you are not following what’s going on properly in the product, you just have to try the experience you would like and might find it exists already.

Hope this helps others! Open-mouthed smile


This article, along with any associated source code and files, is licensed under The MIT License


About the Author

Gordon Beeming (RSA)
Software Developer Nologo Studios
South Africa South Africa
Gordon Beeming works at Nologo Studios in the sunny city of Durban, South Africa. He is the Lead for the Data and Services Team and has a strong focus on Developer Efficiencies and R&D. When he's not hacking away at a keyboard in Visual Studio he'll generally be relaxing with his family or hitting the black top getting in some mileage. He is a Visual Studio ALM Rangers, Visual Studio ALM MVP.

You may also be interested in...

Comments and Discussions

QuestionCan't delete a branch that has a required policy Pin
Donald Schulz17-Oct-18 6:35
memberDonald Schulz17-Oct-18 6:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web01 | 2.8.190114.1 | Last Updated 12 Mar 2018
Article Copyright 2018 by Gordon Beeming (RSA)
Everything else Copyright © CodeProject, 1999-2019
Layout: fixed | fluid