Skip to content

Mirror repository email apply standard template

  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.

What does this MR do and why?

This code update modifies the way emails are sent for GitLab projects. It switches from using the mail_with_locale method to email_with_layout, ensuring a consistent layout for these emails. Additionally, it includes tests to verify the appearance of the header and footer in these emails. These changes enhance the overall user experience and ensure consistency in email communication from GitLab.

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.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Ignore the missing images. This is due to an issue with my gdk config.

Before After

image.png

image.png

image.png

image.png

image.png

image.png

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Visit

image.png

http://gdk.local:3000/rails/mailers/notify/project_mirror_user_changed_email

http://gdk.local:3000/rails/mailers/notify/mirror_was_disabled_email

http://gdk.local:3000/rails/mailers/notify/mirror_was_hard_failed_email

Edited by jimender2

Merge request reports

Loading