Branching strategy with a protected main branch

Verify that branch protection rules and Code Genie are correctly configured on your Control repository to enforce a pull request-based workflow on the main branch.

  1. Navigate to Settings > Branches > Branch Protection in the Control repository.
  2. Verify branch protection rules and Code Genie reviewer (auto-configured during Loop creation).
    1. Confirm that the main branch protection shows the following:
      • Direct pushes to main are blocked.
      • Require pull request reviews before merging: ENABLED. At least one PR approval is needed.
      • Required reviewers list contains: service-account-devopscode-genie.
      • Block merge on rejected reviews: ENABLED.