Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Github.RepoThe Repo module offers the functionality of GitHub's repository API.
val create :
?token:Token.t ->
?organization:string ->
repo:Github_t.new_repo ->
unit ->
Github_t.repository Response.t Monad.tcreate ?organization new_repo () is a new repository owned by the user or organizations if it's provided.
val info :
?token:Token.t ->
user:string ->
repo:string ->
unit ->
Github_t.repository Response.t Monad.tinfo ~user ~repo () is a description of repository user/repo.
val fork :
?token:Token.t ->
?organization:string ->
user:string ->
repo:string ->
unit ->
Github_t.repository Response.t Monad.tfork ?organization ~user ~repo () is a newly forked repository from user/repo to the current token's user or organization if it's provided.
val forks :
?token:Token.t ->
?sort:Filter.forks_sort ->
user:string ->
repo:string ->
unit ->
Github_t.repository Stream.tforks ?sort ~user ~repo () is a stream of all repositories forked from user/repo sorted by ?sort (default `Newest).
val get_tag :
?token:Token.t ->
user:string ->
repo:string ->
sha:string ->
unit ->
Github_t.tag Response.t Monad.tget_tag ~user ~repo ~sha () is the annotated tag object with SHA sha in user/repo.
tags ~user ~repo () is a stream of all tags in repo user/repo.
val get_tags_and_times :
?token:Token.t ->
user:string ->
repo:string ->
unit ->
(string * string) Stream.tget_tags_and_times ~user ~repo () is a stream of pairs of tag names and creation times for all lightweight and annotated tags in user/repo.
val branches :
?token:Token.t ->
user:string ->
repo:string ->
unit ->
Github_t.repo_branch Stream.tbranches ~user ~repo () is a stream of all branches in repo user/repo.
val refs :
?token:Token.t ->
?ty:string ->
user:string ->
repo:string ->
unit ->
Github_t.git_ref Stream.trefs ?ty ~user ~repo () is a stream of all git references with prefix ?ty for repo user/repo.
val get_ref :
?token:Token.t ->
user:string ->
repo:string ->
name:string ->
unit ->
Github_t.git_ref Response.t Monad.tget_ref ~user ~repo ~name is the git reference with name name for repo user/repo.
val get_commit :
?token:Token.t ->
user:string ->
repo:string ->
sha:string ->
unit ->
Github_t.commit Response.t Monad.tget_commit ~user ~repo ~sha () is commit sha in user/repo.
val contributors :
?token:Token.t ->
user:string ->
repo:string ->
unit ->
Github_t.contributor Stream.tcontributors ~user ~repo () is a stream of contributors to repo user/repo.
delete ~user ~repo () activates after repo user/repo has been deleted.
The Hook module provides access to GitHub's webhooks API which lets you manage a repository's post-receive hooks.