Skip to content

Validate uniqueness of name for protected branches on create

What does this MR do and why?

Adds validation in order to:

Prevent duplicate names for protected branches:

  • for group level protected branches in the same group
  • for project level protected branches in the same project

Allow duplicate names for a group level protected branch and a project belonging to that group

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #375619 (closed)

Edited by Jerry Seto

Merge request reports

Loading