# Fix GitHub bot avatar URL \(\#55297\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/2ebc3b2b2cb953d75d248df569ea9f118f1873da)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 2ebc3b2b2cb953d75d248df569ea9f118f1873da

Requested commit: 2ebc3b2b2cb953d75d248df569ea9f118f1873da

Commit: 2ebc3b2b2cb953d75d248df569ea9f118f1873da

Tree: 4da8613eebd9db5793c49461da38cb95deefe832

Author: tsutoringo

Committer: GitHub

## Message

```
Fix GitHub bot avatar URL (#55297)

## Summary

- Fix GitHub avatar URL generation for bot noreply commit authors
- Fall back to the GitHub commit author API when the CDN email avatar
endpoint cannot resolve bot noreply emails
- Add tests covering bot noreply and regular user noreply author emails

- Before 
<img width="305" height="117" alt="image"
src="https://github.com/user-attachments/assets/01f79e6c-cae6-4c28-a3e3-3ca506898f4f"
/>
- After
<img width="297" height="105" alt="image"
src="https://github.com/user-attachments/assets/3f387b62-e34a-41f5-b377-2afe2e895bf8"
/>


## Test Plan

- `cargo test -p git_hosting_providers --features gpui/test-support`


Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- Fixed GitHub avatar lookup for bot noreply commit authors.

---------

Co-authored-by: Christopher Biscardi <chris@christopherbiscardi.com>
```

## Parents

- [7cf3796221780291eb393a190bcc7fec1fb4cafb](https://git.cafe/gitcafe/zed/commit/7cf3796221780291eb393a190bcc7fec1fb4cafb?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/2ebc3b2b2cb953d75d248df569ea9f118f1873da?format=markdown)
