Watch: Stop anyone, including AI, from breaking main | Vovy

Watch Vovy do it on a Mac: "Protect my main branch so nothing merges without passing checks". Vovy adds a GitHub ruleset to main that blocks force-pushes and deletion, and requires a pull request plus passing checks before any merge.

"Protect my main branch so nothing merges without passing checks"

Vovy adds a GitHub ruleset to main that blocks force-pushes and deletion, and requires a pull request plus passing checks before any merge.

What happens in the video

  1. Check your current setup: Vovy checks who pushes to main today, including tools like Lovable and Claude Code, so the rules will not block your own workflow.
  2. Create a ruleset: Vovy opens Settings, Rules, Rulesets and creates a branch ruleset targeting the default branch.
  3. Pick the rules: Vovy turns on block force pushes, restrict deletions, require a pull request and require status checks to pass.
  4. Turn it on: Vovy sets enforcement to Active and adds you as a bypass if you want an emergency override.
  5. Test the protection: Vovy tries a direct push to main, shows it being blocked, and gives you a card of every active rule.
Read the step-by-step guide