Resolve "Make badges in app/views/projects/merge_requests/invalid.html.haml Pajamas-compliant"
What does this MR do and why?
Closes #344380 (closed)
Updates the badges used in app/views/projects/merge_requests/invalid.html.haml
to use the new badge helper utility.
Screenshots or screen recordings
Note that there's no difference here, as the styles match exactly.
Before | After |
---|---|
How to set up and validate locally
I can't figure out how to get this to actually show in normal operation.
When I delete a branch, GitLab closes my MR instead of showing these errors. If I delete a branch in the middle of creating an MR, the MR is created just fine but shows "no changes".
So I edited app/controllers/projects/merge_requests_controller.rb
def show
to simply be render('invalid')
and it showed my branch deletion (for example).
- Create a branch with a change
- Start the process of creating an MR for it
- Before clicking the button to finalize your MR creation, delete the branch
- Click the button to create the MR
- Edit the file above and refresh the 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.