github3.py icon indicating copy to clipboard operation
github3.py copied to clipboard

How to fetch repository topics when searching?

Open lambdaofgod opened this issue 6 years ago • 1 comments

Is there a way to fetch topic information when searching for repositories, as it is possible by calling API with adding "Accept": "application/vnd.github.mercy-preview+json" headers?

For example, how to add this information when loading starred repositories? In #859 you mentioned support for repository topics - I don't see anything that would likely correspond to appropriate header in methods for search or getting starred repos.

lambdaofgod avatar Jul 20 '19 17:07 lambdaofgod

That PR appears to add support for fetching or changing the topics of a repository by way of the repository object. What you're asking for looks like a different feature, fetching topic information while searching for repos.

Some work would have to be done to enhance the Search functionality to include fetching that info, and populating that info for the search results.

omgjlk avatar Sep 24 '19 13:09 omgjlk