Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Require Pull Request in TFS

Tags:

git

tfs

tfs-2015

Pull Requests were recently implemented in TFS. Is there a way to force users to make Pull Requests, and have others review it before they can merge into a branch?

I've tried restricting Contribute permissions to the branch for a TFS group, but that prevented them from merging through Pull Requests too.

like image 315
Jonn Avatar asked Nov 21 '14 08:11

Jonn


People also ask

How do I force pull request Azure DevOps?

From the Pull Requests view, select New Pull Request. Select the source and target branches, enter a title and optional description, and select Create. After the PR is created, select Open in browser to open the new PR in the Azure DevOps web portal.


1 Answers

You tagged your question with TFS 2013, and I think that what you strictly ask for is not possible.

But in TFS 2015 and VSO you can access a feature called Branch Policies under the team project settings -> Version Control -> Click your Repository -> Branch Policies.

Well there you tick Require a minimum number of reviewers per pull request. If it is important that other make the review, make sure that Allow users to approve their own changes is not checked.

I have written a blog post which describes it in more detail.

like image 108
Johan Classon Avatar answered Sep 30 '22 02:09

Johan Classon