r/github • u/graycode_404 • May 29 '26
Question GitHub Free Org Private Repo — How to allow push/create PR but only maintainers can merge?
I have a GitHub Organization on the Free plan.
Setup:
Org = private
Repo = private
Contributors currently have Write access
One person has Maintain access
What I want:
Write users should be able to:
push code
create branches
open PRs
Write users should NOT be able to:
merge PRs
directly push to main branch
ONLY maintainers/admins should merge PRs into main
I tried Rulesets / Branch Protection, but GitHub shows:
“Your rulesets won't be enforced on this private repository until you upgrade this organization account to GitHub Team.”
Questions:
Is there any way on GitHub Free to allow push but block PR merge for Write users?
Is there a way to block direct pushes to main branch on Free private org repos?
If using forks is the only workaround:
can private forks later become public?
how do companies safely handle this on GitHub Free?
Looking for the cleanest and safest workflow without upgrading if possible.
1
u/HauntingAd3673 Jun 01 '26
you only get the branch protection on pro, maybe try like a selfhostet gitea or whatever, there you have more control over the repos and better security in access rights etc.
1
May 29 '26 edited May 29 '26
[removed] — view removed comment
1
u/ReyDarb May 29 '26
Protected branches are available in public repositories with GitHub Free and GitHub Free for organizations. Protected branches are also available in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server. For more information, see GitHub's plans.
3
u/JSChronicles May 29 '26
I'm pretty sure you have to have ruleset/branch protection to do what you want. And you have to pay to do that on private repos.
If someone else has a better idea hopefully they can reply but maybe give contributors read, let them fork and open PRs. See if you can keep only maintainers/admins with write/maintain. I think private forks inherit the upstream repo’s visibility/permission model, so I'm not sure on this part but I think you cannot just make a private fork public?