Skip to content

Migrate protected branch form errors

Diana Zubova requested to merge dz/364880-migrate-protected-branch-form into master

What does this MR do and why?

Migrate errors form for protected branch project repository settings

Closes #364880 (closed)

Screenshots or screen recordings

Before After
Screenshot_2022-07-14_at_14.30.41 Screenshot_2022-07-14_at_14.31.56

How to set up and validate locally

  1. Open a project where you have admin rights
  2. Navigate to Settings -> Repository http://localhost:3000/flightjs/Flight/-/settings/repository
  3. Expand protected branches section
  4. Trigger an error, for example by adding this line to the haml - @protected_branch.errors.add(:base, "Something went wrong")
  5. Observe change form error

MR acceptance checklist

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

Merge request reports

Loading