Migrate form errors in Push rules to Pajamas
What does this MR do and why?
Fixes #364968 (closed)
Migrate the existing form error in push_rules settings to be Pajamas complaint.
Screenshots or screen recordings
before | after |
---|---|
How to set up and validate locally
- Visit project settings > repository > push rules
- Open the file in editor
ee/app/views/projects/push_rules/_index.html.haml
- To trigger an error, add this line on the top
- @push_rule.errors.add(:base, "Something went wrong")
- View the error on the settings page.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #364968 (closed)