Skip to content

Add new params in protected branch creation

What does this MR do and why?

Add new params in protected branch creation

This commit adds code_owner_approval_required and allow_force_push param in protected branch creation

EE: true Changelog: added

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

  1. To validate using UI, you need to take pull of branch: xanf-fix-default-branch-protection-default
  2. Go to Group->Settings->Repository
  3. Change default branch protection settings Screenshot_2024-05-08_at_5.44.42_PM
  4. Create new project and check default protected branch settings.

Related to #408152 (closed)

Edited by Harsimar Sandhu

Merge request reports