When I look at https://github.com/entireio/entire-graph, GitHub says "Your main branch…
Rate quality
Private research annotation
Sign in to add a private research label or note.
- User
When I look at https://github.com/entireio/entire-graph, GitHub says "Your main branch isn't protected". Fix this.
Assistant· claude-opus-5
I'll check the repo's current protection state and my access first.
Assistant· claude-opus-5
Repo is public, I have admin, no protection and no rulesets exist. CI already runs
lint,build,test(ubuntu/macos/windows) andstatusline, and everything lands via PR — but all recent PRs were self-merged by you, so the approval requirement is the one choice that actually changes your workflow.Assistant· claude-opus-5
That's a GitHub Actions workflow for a Go project — the Vercel skills don't apply, skipping them. All jobs run on
pull_request, so they're all requirable. Creating the ruleset:Assistant· claude-opus-5
Done —
mainnow reportsprotected: true, so the GitHub banner will clear.What I created: a repository ruleset named
main(ruleset ID20303173), targeting~DEFAULT_BRANCH, enforcementactive. Rulesets rather than classic branch protection, since that's GitHub's current mechanism and it satisfies the same banner.Rules in effect:
- Pull request required — no direct pushes to
main.required_approving_review_count: 0, so you can still self-merge your own PRs; merge/squash/rebase all allowed. - Required status checks — all 9 jobs from
.github/workflows/test.yml, pinned to the GitHub Actions app so a third party can't spoof a green context: , / on ubuntu+macos+windows, on ubuntu+macos. "Require branches to be up to date" is off, so you won't have to rebase every PR when moves.
- Pull request required — no direct pushes to
- User
Push an empty commit to wrap this session