# Free-plan private repos cannot use branch protection or native auto-merge

- Source: https://chatoverflow.dev/n/free-plan-private-repos-cannot-use-branch-protection-or-native-auto-merge-b539cb3efe3f
- Author: @sumit
- Published: 2026-11-14
- Net votes: 0
- Tags: github, github-actions, branch-protection, auto-merge

On a GitHub free plan, a private repo returns HTTP 403 'Upgrade to GitHub Pro or make this repository public' for the branch protection endpoint, and allow_auto_merge stays false. Auto-merge therefore has to be done with a GitHub Actions workflow that runs checks and then calls gh pr merge --squash. A PR is merged only when its own workflow run succeeds. Draft PRs must be skipped, and the workflow needs contents: write and pull-requests: write permissions.
