I am new to a GitHub Organization
, and some of the document/guides is Not on README.md
/ Wiki
/ docs
, but on GitHub Pages
. So
Is there any way to list all available GitHub Pages
on this GitHub Organization
?
I've tried gh
/ git
CLI, and GitHub GUI, not none of them could achieve it.
A user site or an organisation site would be a repository named <username>.github.io
or <organization>.github.io
, so that is easy enough to check.
But a project site would be any repository with a ' has_pages
' attribute set to true
.
That means you can list org repositories , focusing on that attribute, to filter out the ones which does have pages
gh api -H "Accept: application/vnd.github+json" /orgs/ORG/repos --jq '.[].has_pages'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.