Skip to content

Add formatting to personal access token in the email

What does this MR do and why?

Currently, the HTML version of the "personal access token revoked" email notification formats the token name as code:
https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/views/notify/access_token_revoked_email.html.haml#L4

However, the equivalent notification for "personal access token created" does not:
https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/views/notify/access_token_created_email.html.haml#L4

This simple edit is to add the missing code formatting.

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

  1. Open the template for personal access token email and see the formatted token: https://gdk.test:3443/rails/mailers/notify/access_token_created_email

MR acceptance checklist

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

Edited by Eduardo Sanz García

Merge request reports