github :: GithubAPI :: get_repo_branches
Pagination:
* `page`: page to fetch (default: 1)
* `per_page`: number of branches by page (default: 30)
# List of repo branches.
#
# Pagination:
# * `page`: page to fetch (default: 1)
# * `per_page`: number of branches by page (default: 30)
fun get_repo_branches(repo_slug: String, page, per_page: nullable Int): Array[Branch] do
return new GithubArray[Branch].from(get(
"/repos/{repo_slug}/branches?{pagination(page, per_page)}"))
end
lib/github/api.nit:219,2--227,4