datakit-github

Abstraction of the GitHub API, suitable for DataKit clients
Library datakit-github
type t = private {
id : int;
user : User.t;
body : string;
}

The type for comments.

val v : id:int -> user:User.t -> body:string -> t

v ~id ~user ~body is a comment done by user saying body.

val id : t -> int

id t is t's ID, e.g. the appearance order in the comment list.

val user : t -> User.t

user t is t's user.

val body : t -> string

body t is t's body.

val pp : t Fmt.t

pp is the pretty-printer for comments.