Incomplete information about limitations of REST API for code search #37124
Labels
content
This issue or pull request belongs to the Docs Content team
fix-internally
Triggers a workflow to copy the issue internally and close the current issue
needs SME
This proposal needs review from a subject matter expert
Code of Conduct
What article on docs.github.com is affected?
https://docs.github.com/en/rest/search/search?apiVersion=2022-11-28
What part(s) of the article would you like to see updated?
I think this documentation should clearly call out that the REST API uses a legacy search syntax, the limitations of the REST code search API as described over in the legacy docs, and that results via the API are unlikely to match the results obtained through the web interface.
I just wasted a few hours building a tool to search for untrusted GitHub actions, only to discover it appeared to work well on the first couple of orgs I tried it on, but then missing results on the third led me to find the legacy docs that explained why it wasn't working (max 2 fragments, only recently-searched repos 🤦)
There are three limitations outlined in the doc, but there are ten in the full list. Had I been directed at the full list, I think it would have been clear that it was not fit for my purpose without wasting my time.
Additional information
I can submit a PR for the main doc, but I spent most of my time in the API documentation which is where the partial list of limitations is. It looks like that section is generated and not editable?
The text was updated successfully, but these errors were encountered: