Checks your GitHub Pages site for common DNS configuration issues
Checks your GitHub Pages site for common DNS configuration issues
Checks your GitHub Pages site for common DNS configuration issues
gem install github-pages-health-check
> check = GitHubPages::HealthCheck::Site.new("choosealicense.com")
=> #
> check.valid?
=> true> check = GitHubPages::HealthCheck::Site.new("foo.github.com")
> check.valid?
=> false
> check.valid!
raises GitHubPages::HealthCheck::Errors::InvalidCNAMEError> check.domain.should_be_a_record?
=> true
> check.domain.a_record?
=> true…> check = GitHubPages::HealthCheck::Site.new "developer.facebook.com"
> check.valid?
=> false
> check.reason
=> #
> check.reason.message
=> "CNAME does not point to GitHub Pages"Repository checks require a personal access or OAuth token with repo or scope. This can be passed as the second argument to the Site or Repository constructors like so:
check = GitHubPages::HealthCheck::Site.new "github/pages-health-check", access_token: "1234You can also set OCTOKIT_ACCESS_TOKEN as an environmental variable, or via a .env file in your working directory.
…No open issues yet, or sync has not completed.