class Runway::GitHub

Defined in:

runway/services/github.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(log : Log, token : String | Nil = ENV.fetch("GITHUB_TOKEN", nil)) #

The octokit class for interacting with GitHub's API @param log [Log] the logger to use @param token [String?] the GitHub token to use for authentication - if nil, the client will be unauthenticated


[View source]

Instance Method Detail

def check_rate_limit! #

A helper method to check the rate limit of the GitHub API if the rate limit is exceeded, we'll wait until the rate limit resets this is a blocking operation


[View source]
def create_deployment_status(repo : String, deployment_id : Int64, status : String) : String #

[View source]
def deployments(repo : String, environment : String) : String #

[View source]
def list_deployment_statuses(repo : String, deployment_id : Int32, per_page : Int32 = 30) : Octokit::Connection::Paginator(Octokit::Models::DeploymentStatus) #

[View source]