Frank Q.
Frank Q.

Reputation: 6592

Branch Policy in Github

I have 2 branches in my github repository. How do I enforce a branch policy for Master branch such that any changes to it must require a code review from specific folks done ?

Upvotes: 2

Views: 437

Answers (1)

VonC
VonC

Reputation: 1323953

This is best managed by repos, not branches.

You can have one repo with the master branch, and one or several forks, from which developers can make pull request in order to request a merge to master of the original repo.

Only the "specific folks" are declared collaborators on the original repo, and can review the PRs and merge them.

Then the developers can synchronize their own fork.

Upvotes: 1

Related Questions