struct Shardbox::GitHubAPI

Defined in:

fetchers/github_api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(api_token : String = ENV["GITHUB_TOKEN"]) #

[View source]

Instance Method Detail

def fetch_owner_info(login : String) : Hash(String, JSON::Any) | Nil #

[View source]
def fetch_repo_metadata(owner : String, name : String) : Repo::Metadata | Nil #

[View source]
def graphql_client : HTTP::Client #

[View source]
def parse_github_graphql(content, expected_key, &) #

[View source]
def query(query, variables) #

[View source]