List all my Github Pages Projects #24595
-
Hi ! I’m trying to make a list of all my Github Pages Projects (username.github.io/project-name) but I can’t find a way to do it with a request on the Github Api. Like I can get all my repos but not only the ones that are hosted on Github Pages |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
try https://docs.github.com/en/rest/repos/repos#list-repositories-for-the-authenticated-user then look at
there you’ll know whether it’s hosted on GitHub Pages, or any other deployments |
Beta Was this translation helpful? Give feedback.
-
I created https://gh-pages.glitch.me/ to help you browse through your repositories that have GitHub pages enabled as well as those for the people you follow: |
Beta Was this translation helpful? Give feedback.
-
Hey I had the same issue and I came up with this shell one liner:
curl "https://api.github.com/users/<username>/repos?per_page=100" | jq '.[] | select(.has_pages==true) | .name' |
Beta Was this translation helpful? Give feedback.
try
https://docs.github.com/en/rest/repos/repos#list-repositories-for-the-authenticated-user
then look at
deployments_url
there you’ll know whether it’s hosted on GitHub Pages, or any other deployments