Closed mehrdadrad closed 3 years ago
Good idea. Just to double check that I understand it correctly, do you mean the thing that GitHub calls topics? (see screenshot based on this repo here)
@spier yes exactly.
Great, thanks.
Did you confirm that the tool does indeed not consider the topics when searching? I tried to verify what you said in the demo but couldn't because that contains just test data and no real repos. Are you running your own instance of this with your own data or similar?
Just wondering how to describe the current and desired behavior in the most specific way, in case somebody wants to pick this up and implement it.
Confirmed, I tried an instance which another group installed and noticed it doesn't care about topics. I think topics are great keywords that they should be considered. (enhancing search feature)
Great idea, unfortunately topics are not included in the GitHub repository search response so we need to change the crawler logic to include topics as well. They could be fetched with a separate call for each repository and merged with the metadata as topics
in the resulting repos.json
JSON file:
https://docs.github.com/en/rest/reference/repos#get-all-repository-topics
{
"name": "repository",
...
"topics": [
"octocat",
"atom",
"electron",
"api"
]
}
Including topics in the search should be easy once this is done. Feel free to contribute this feature.
Kind Regards, Michael
great contribution, thank you @spier !
@spier i updated the documentation as well, kindly check my PR #13
All done 🏁
It would be great if the search supports tags as well!