Skip to content

Show avatars for Copilot bot users#21475

Merged
niik merged 5 commits intodevelopmentfrom
copilot-avatars
Jan 20, 2026
Merged

Show avatars for Copilot bot users#21475
niik merged 5 commits intodevelopmentfrom
copilot-avatars

Conversation

@niik
Copy link
Member

@niik niik commented Jan 19, 2026

Closes #21402

Description

As of #18001 we resolve bot avatars differently than we do regular commit authors. This is because looking up bot avatars by their email is broken on avatars.githubapp.com. So instead we look to see if the author ends with [bot] in which case we resolve the bot via the API and return its avatar URL. This works well except in the case of Copilot where the login part in the stealth email doesn't accurately reflect the login of the bot. So we'll have to hardcode the id of the bot and its integration to get it to display properly.

While I was at this I also addressed the issue in #21402 in which the z-index of the avatars in an avatar stack was broken causing avatars further into the stack to obscure previous ones.

Lastly I simplified the CommitAttribution component to make sure it accurately reflect the same number of "people" that the avatar stack shows by having it operate on the same array of avatar users.

Screenshots

Before

Screenshot 2026-01-19 at 12 00 02 Screenshot 2026-01-19 at 12 01 11

After

Screenshot 2026-01-19 at 12 00 17 Screenshot 2026-01-19 at 12 00 21

Release notes

Notes:

@niik niik merged commit a3c6f1f into development Jan 20, 2026
9 checks passed
@niik niik deleted the copilot-avatars branch January 20, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show main author's image first in the list

2 participants