You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I will PR, any particular way you want this done? It could be different functions, it could be an enum parameter, boolean parameter. Or I can just choose.
Looks like owner is just a string, but it would be ideal if there were a way to automatically determine user vs. org behind the scenes and then make the right API call. However, if it takes an extra API call to determine user type, then maybe best to have different function such as userRepositories and orgRepositories.
The /users/:username/repos and /orgs/:org/reposendpoints have slightly different parameters, but appear to have the same payload format, so should be able to use the same Repository model for parsing.
The url for org repos is:
But the code only uses:
Which lists public repos, but not private ones.
The text was updated successfully, but these errors were encountered: