Prevent merging your own download request on GitHub

We have a practice in our company that people cannot combine their own pull requests. PR may be allowed only for reviewers.

What can we do on github to ensure this?

Is there a way that would prevent people from joining their own craving request, or is there something that would be a good alternative to this policy?

+6
source share
1 answer

This kind of policy is best managed in the GitHub Organization : it has a richer set of permissions .

You can define teams and make the reviewer team the owner of the repo that accepts the PR.

If you want the reviewer to not accept your own policy, then GitHub permissions would not be enough, and you would need to add a listener that could warn you in this case (PR, adopted by its author) using the GitHub API PR events .

+3
source

Source: https://habr.com/ru/post/969837/


All Articles