Forum Discussion

Artem1231970's avatar
Artem1231970
Copper Contributor
May 25, 2022

How to connect branch policies with work items in Azure Repos?

I have a couple of questions about branch policies in Azure Repos.

As you can see we have a branching strategy based on linked items in Azure DevOps.

My questions:

  1. Is it possible to allow users push their changes to Main branch only if their branch is connected with some story?

  2. And the second -- is it possible to allow users push changes to Story branch only if their task is child to story in which they are trying to push?

I have read all docs about polices and have not found anything appropriate

Or what policies could you recommend if nothing exists from the above

 

 

No RepliesBe the first to reply