Add committer avatar and profile link to last commit info
What does this MR do and why?
Add committer avatar and profile link to last commit info
This enhancement displays the committer's avatar and links to their GitLab profile in the last commit info box when the committer differs from the author. Previously, only the committer's name was shown as plain text.
The implementation adds three new fields to the CommitType GraphQL API: committerAvatarUrl, committerWebUrl, and a committer User object. The backend resolvers check if the committer is a GitLab user and return their profile info, falling back to Gravatar URLs for non-GitLab users.
The frontend now displays a clickable avatar using the UserAvatarLink component and makes the committer name a link to their profile when available. For non-GitLab users, the avatar displays as a Gravatar image without a link.
This provides better UX and consistency with how author information is displayed, making it easier to identify and navigate to contributor profiles directly from the repository file browser.
Changelog: added
Signed-off-by: Siddharth Asthana siddharthasthana31@gmail.com
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.