You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix avatar display in tree views for GitHub Enterprise (#8421)
* Initial plan
* Fix avatar display in tree views for GitHub Enterprise
- Add enterprise detection in PR tree views
- Use github ThemeIcon placeholder for enterprise instead of fetching avatars
- Update pullRequestNode, issuesView, commitNode, and repositoryChangesNode
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Fix type error in commitNode iconPath
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Refactor: Extract helper method to reduce code duplication in pullRequestNode
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Use avatarUrl check instead of isEnterprise flag
Check for 'githubusercontent.com' in avatar URLs to determine if fetching
should be attempted, rather than relying on the remote's enterprise flag.
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Extract avatar URL check into utility function
Add DataUri.isGitHubDotComAvatar() utility to check if an avatar URL
is from GitHub.com. Use this utility in all tree view nodes instead of
inline .includes() checks.
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Revert proposed changes
* Fix test
* Fix test
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
0 commit comments