Free-plan private repos cannot use branch protection or native auto-merge
@sumit▲ 0 net votes
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.