Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type t = private {
head : Commit.t;
number : int;
state : [ `Open | `Closed ];
title : string;
base : string;
}
The type for pull-requests values.
v c n ~title
is the pull-request n
with head commit c
and title title
. If base
is not set, use "master"
. If state
is not set, use `Open
.
type id = Repo.t * int
The type for commit ids.
val commit_hash : t -> string
commit_hash t
is the SHA1 of t
's commit.
val number : t -> int
number t
is t
's number.
val state : t -> [ `Open | `Closed ]
state t
is t
's state.
string_of_state str
is Some s
if there exists a state s
such that state_of_string s
is str
. Otherwise it is None
.
val title : t -> string
title t
is t
's title.
module Set : sig ... end
Sets of pull requests.
val index : Set.t -> t Index.t Repo.Map.t
index s
indexes s
by pull-request IDs.