Skip to content

Fix avatar when commit email is an empty string

Heinrich Lee Yu requested to merge fix-avatar-for-empty-commits into master

What does this MR do and why?

Fix avatar when commit email is an empty string

Render the default avatar instead of the first user with a blank public email

Screenshots or screen recordings

Before After
Screenshot_2023-05-05_at_9.10.43_AM Screenshot_2023-05-05_at_9.11.54_AM

How to set up and validate locally

  1. Create a commit with a blank email

    git commit -m "Test no email" --author "No Email <>"
  2. View the commit in the web UI

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 Heinrich Lee Yu

Merge request reports

Loading