-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Correctly support language filter in repo search #1951
Correctly support language filter in repo search #1951
Conversation
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.
LGTM 👍
Hi @benmcmorran Did you have any more background or context on this change? It seems github docs have changed and I cant actually find the list of language codes that are supported. But even looking at your C++ example Im find that when doing searches with I cant seem to find the list of languages in docs anywhere anymore... https://api.github.com/search/repositories?q=test+language:CPlusPlus (clearly wrong, there are all sorts of repos returned) |
I think I found the list of languages https://github.com/github/linguist/blob/master/lib/linguist/languages.yml |
I initially ran into this when I was attempting to write a tool to download a bunch of C/C++ repos, but most of my results ended up being Java instead. That's a good catch though about C++ not actually returning C++ results. I had only played with the web search, which does correctly handle |
I pushed another commit to fix the C++ case. |
we probably have other language codes that need aligning but i think in the context of this PR, the changes you've made plus fixing up the obvious c++ language code issue, should be good enough 👍 |
release_notes: Fix |
The language was being directly converted to a string through
ToString()
instead of using the value in theParameterAttribute
.