datakit-github

Abstraction of the GitHub API, suitable for DataKit clients
Library datakit-github
Module Datakit_github . Repo
type t = private {
user : User.t;
repo : string;
}

The type for Github repositories.

type state = [
| `Monitored
| `Ignored
]

The type for repository state.

val v : user:User.t -> repo:string -> t

v user string will create a fresh t.

val of_string : string -> t option

of_string s parses strings of the form ":user/:repo".

val pp : t Fmt.t

pp is the pretty-printer for Github repositories.

val compare : t -> t -> int

compare compares repositories.

val pp_state : state Fmt.t

pp_state is the pretty-printer for repository state.

module Set : SET with type elt = t

Sets of repositories.

module Map : MAP with type key = t

Maps of repositories.