Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upSearch is broken, it always returns empty array for successful search #335
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Hello :)
Search doesn't return the results but an empty array. This comes down to an issue with _requestAllPages and the fact that search results are wrapped in an items array and for instance issues are not.
https://developer.github.com/v3/issues/
https://developer.github.com/v3/search/
This doesn't work with _requestAllPages in Requestable.js
The line
results.push.apply(results, response.data);works for issues, but not for search. if I change the line toresults.push.apply(results, response.data.items);it works for search and not issues.`Best regards,
Jonatan