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;
owner : User.t;
comments : Comment.t array;
}
The type for pull-requests values.
val v :
?state:[ `Open | `Closed ] ->
title:string ->
?base:string ->
owner:User.t ->
comments:Comment.t array ->
Commit.t ->
int ->
t
v c n ~title ~owner
is the pull-request n
with head commit c
, title title
and owner owner
. 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.