gabrie30 / ghorg

Quickly clone an entire org/users repositories into one directory - Supports GitHub, GitLab, Bitbucket, and more 🐇🥚
Apache License 2.0
1.58k stars 167 forks source link

Option to select GitHub "type" parameter #429

Closed anton-kotik closed 4 months ago

anton-kotik commented 4 months ago

Right now, there's no way to clone only GitHub repositories where you are the owner.

Current GitHub API request: https://api.github.com/users/anton-kotik/repos?per_page=100&type=all Correct GitHub API request: https://api.github.com/users/anton-kotik/repos?per_page=100&type=owner

Describe the solution you'd like For example, command option --github-type=owner (default: all). Possible values: all / owner / member.

Additional context https://docs.github.com/en/rest/repos/repos?apiVersion=2022-11-28#list-repositories-for-a-user

gabrie30 commented 4 months ago

Thanks for raising this, sounds like a good idea