https://api.github.com/user/repos api returns repositories that the authenticated user has explicit permission (:read, :write, or :admin) to access. ( It includes both the user repos and org repos if any).
https://api.github.com/search/repositories?q=searchtext+in:name api returns all the public repos in GitHub.
I can restrict by adding user:username in q to return only user repos. But this returned list does not contain org repos which user has access to.
Is there any way to get both user repos and org repos simultaneously using search api like the first api gives?
One solution I see is, to add org:orgname in q along with user:username but I don’t want to do this because I do not have org detail available with me for that user. I only have username. Also I don’t want to make another api call to fetch org associated to that username.
Hoping for an early response!