Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disabling self pull request merge on github

In Github, is it possible to disable the option for users to open pull requests and merge them by themselves?

So that every pull request HAS to be approved by another user.

like image 335
Ethan Shiloh Avatar asked May 04 '26 11:05

Ethan Shiloh


1 Answers

I believe protected branches offer this.

  1. Go to the repository settings.
  2. Go to "branches"
  3. Choose the target branch you want to protect.
  4. Check "Protect this branch", then require reviews. You can also include repository administrators.

enter image description here

like image 69
vcsjones Avatar answered May 06 '26 03:05

vcsjones