Skip to content

Protect main Branch, with Manual QA

This is a how-to Guide, with everything you need, to "protect" your
main branch with Manual Checks.
The Guide is part of the release-me Phase 2 Git Ops Process.

Prerequisites

  • a github repository
  • account with permission to Repository Settings

Guide

  1. Navigate to Repository Settings in your Repository Settings on github.com

    Github Repo Navigation

  2. Click branches under Code and Automation

    Code and Automation -> Branches

  3. If no Rule exists that matches the main name pattern, create one

  4. If PR is NOT required before merging, enable the rule to allow code merges in main only via PR

    alt text

  5. Require Manual Approval, using self code review

    Required review from code owners

Congratulations!

You should now have ensured no merge happens to main branch, without manual intervention!