Skip to content
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.URL to SearchResult? #560

Open
isker opened this issue Mar 16, 2023 · 1 comment
Open

Add Repository.URL to SearchResult? #560

isker opened this issue Mar 16, 2023 · 1 comment

Comments

@isker
Copy link
Contributor

isker commented Mar 16, 2023

Right now, SearchResult provides URL templates for linking to individual files and line numbers within a repository, but not a URL for linking to the repository itself. If you want to get the repository URL, you have to join a SearchResult to a list request, or try to heuristically extract it from the file URL template.

I'm sure adding fields to SearchResult is not to be done lightly, but what do you think about adding this one?

@isker
Copy link
Contributor Author

isker commented Mar 16, 2023

Of course, adding such a field presents a naming dilemma. RepoURLs is exactly what this would be - the existing thing should have been named something else.

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

No branches or pull requests

1 participant