class

Forgejo::API

Inherits Reference < Object

Constructors

new(base_url : String, token : String, logging : Bool = true)
Source

Instance methods

base_url
Source
client
Source
get_file(owner : String, repo_name : String, file_path : String, ref : String = "main") : String

Get a file from a repository Returns raw file content.

Source
logging
Source
logging=(logging : Bool)
Source
make_request(url, params = {} of String => String)
Source
repo(owner : String, repo_name : String)
Source
repo_languages(owner : String, repo : String) : Hash(String, Int64)

Get languages and number of bytes of code written => {"Crystal" => 109927, "HTML" => 36888}

Source
repo_releases(owner : String, repo : String)
Source
repos_search(query : String, topic : Bool = false, sort : String = "created", order : String = "asc", page : Int32 = 1, limit : Int32 = 100)
Source
token
Source
user(username : String)
Source