mona-actions / gh-repo-stats

GH CLI extension to pull statistics on repository metadata used in GitHub migrations
MIT License
146 stars 76 forks source link

invalid API endpoint #83

Closed fredgohsman closed 8 months ago

fredgohsman commented 8 months ago

For some reason, the command is not working for me. Windows 11 Organization is GHE and my authenticated account is an Organization Admin.

$ gh repo-stats -H github.com -o org-name

######################################################
######################################################
############# GitHub repo list and sizer #############
######################################################
######################################################

invalid API endpoint: "C:/Program Files/Git/user". Your shell might be rewriting URL paths as filesystem paths. To avoid this, omit the leading slash from the endpoint argument
Error getting user

invalid API endpoint: "C:/Program Files/Git/". Your shell might be rewriting URL paths as filesystem paths. To avoid this, omit the leading slash from the endpoint argument
invalid API endpoint: "C:/Program Files/Git/meta". Your shell might be rewriting URL paths as filesystem paths. To avoid this, omit the leading slash from the endpoint argument
Error getting GHE version

find: ‘./AppData/Local/Microsoft/Windows/INetCache/Low/Content.IE5’: Permission denied
find: ‘./AppData/Local/Razer/RazerAxon/WallpaperSource/RazerAxonWallPapers’: Permission denied
invalid API endpoint: "C:/Program Files/Git/orgs/us-southou-demo/memberships/". Your shell might be rewriting URL paths as filesystem paths. To avoid this, omit the leading slash from the endpoint argument
Error getting Membership for Org: org-name
ssulei7 commented 8 months ago

Hi @fredgohsman,

This extensions backend is written in bash. Are you running this extension in WSL 2 under Windows? If not, please use the extension in a Unix / Linux based environment.

fredgohsman commented 8 months ago

@ssulei7 Thanks for the reply!❤️‍🔥 And thanks for making me brush up on my 🐧 Linux skills. It is unfortunate that these tools may not work on 🪟 Windows natively though.