-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
git_hosting_providers: Add support for Chromium repositories #24881
git_hosting_providers: Add support for Chromium repositories #24881
Conversation
Add an implementation of GitHostingProvider for repositories hosted on https://chromium.googlesource.com. Pull requests target the Gerrit instance at https://chromium-review.googlesource.com and avatar images are fetched using the Gerrit REST API. Release Notes: - Support repositories hosted on https://chromium.googlesource.com
@maxdeviant hey! This PR just has one thing missing. The avatar url at https://github.com/zed-industries/zed/pull/24881/files#diff-0296a250f68527abab595c466384867f70c35cf6052ac77a281fe72941654b27R187 doesn't return an image but an HTTP 302 that points to the actual image. Can you give a hint on how to make that work? |
The avatar URLs seem to load for me: ![]() I think we can go ahead and merge this. |
Yeah, for some reason it didn't work before. Maybe it took some time to load, and I just gave up 🤷 |
While debugging it I noticed two things:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Do you have some of those at hand? |
Hmm, odd, I'm not seeing the dead links anymore! |
What I had more doubts about this was to either rely on Reviewed-On or Change-Id. The latter should be more reliable and other Gerrit projects not hosted at https://chromium.googlesource.com/ only use that but the issue with it is that multiple "PRs" can have the same Change-Id. I can revisit this in the future though. |
Add an implementation of GitHostingProvider for repositories hosted on https://chromium.googlesource.com. Pull requests target the Gerrit instance at https://chromium-review.googlesource.com and avatar images are fetched using the Gerrit REST API.
Release Notes:
chromium.googlesource.com
for Git blames and permalinks.