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

Copper Contributor

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

 

Снимок экрана 2022-05-25 163748.png

 

0 Replies