-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Add repository info when getting federated extensions #417
Add repository info when getting federated extensions #417
Conversation
Thanks for submitting your first pull request! You are awesome! 🤗 |
Thanks @nbowditch-einblick Is the |
Thanks for the response! The In the logic on the front-end side, it should be able to use either a function getExtensionGitHubUser(entry: IEntry) {
if (
entry.homepage_url &&
entry.homepage_url.startsWith('https://github.com/')
) {
return entry.homepage_url.split('/')[3];
} else if (
entry.repository_url &&
entry.repository_url.startsWith('https://github.com/')
) {
return entry.repository_url.split('/')[3];
}
return null;
} The object being read in that front-end logic from there is constructed in manager.py in jupyterlab's repo, here. Note that to assign the value of The |
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.
Thanks @nbowditch-einblick for this and the very detailed information.
References
#416 Add repository url to extension info
Code changes
repository
field to values returned byget_federated_extensions
if it's available in relevant package.json (and if it contains a "url" field)