@@ -89,13 +89,17 @@ module Header : sig
8989 out, such as in [CR user1: Comment]. *)
9090 val recipient : t -> Vcs.User_handle .t option
9191
92- val kind : t -> Kind .t
92+ val status : t -> Status .t
9393
9494 (* * This returns the qualifier if present ([Soon] for [CR-soon] or [Someday]
9595 for [CR-someday]). If there is no qualifier specified, this returns
9696 [None]. *)
9797 val qualifier : t -> Qualifier .t
9898
99+ (* * [priority t] represents the expectation as to when work on the CR is meant
100+ to happen. It is based on the header's qualifier. *)
101+ val priority : t -> Priority .t
102+
99103 module With_loc : sig
100104 (* * These getters allows you to access the position of each elements of the
101105 CR header. This is meant for tools processing CRs automatically, such
@@ -113,21 +117,25 @@ module Header : sig
113117 (* * The location includes the entire keyword ["CR"] or ["XCR"] depending on
114118 the case. It stops right before the following char, that being a space
115119 or a ['-'] (and thus does not include it). *)
116- val kind : t -> Kind .t Loc.Txt .t
120+ val status : t -> Status .t Loc.Txt .t
117121
118122 (* * When the CR is qualified as [Soon] or [Someday], the location returned
119123 starts right after the dash separator (but does not include it), and
120124 contains the entire qualifier keyword. For example, the location will
121125 include ["soon"] for a [CR-soon]. When the CR has no qualifier, there
122126 is no keyword to attach a location to : conventionally, we return
123- instead the location of the CR [kind ] in this case. *)
127+ instead the location of the CR [status ] in this case. *)
124128 val qualifier : t -> Qualifier .t Loc.Txt .t
125129
126130 (* * {1 Deprecated}
127131
128132 The following is deprecated and will be soon annotated as such with ocaml
129133 alerts. Please migrate, and do not use in new code. *)
130134
135+ (* * This was renamed [status]. Hint: Run [ocamlmig migrate]. *)
136+ val kind : t -> Status .t Loc.Txt .t
137+ [@@ migrate { repl = Rel. status }]
138+
131139 (* * This was renamed [reporter]. Hint: Run [ocamlmig migrate]. *)
132140 val reported_by : t -> Vcs.User_handle .t Loc.Txt .t
133141 [@@ migrate { repl = Rel. reporter }]
@@ -138,7 +146,7 @@ module Header : sig
138146
139147 (* * This was renamed [qualifier]. Hint: Run [ocamlmig migrate]. *)
140148 val due : t -> Qualifier .t Loc.Txt .t
141- [@@ migrate { repl = Rel. recipient }]
149+ [@@ migrate { repl = Rel. qualifier }]
142150 end
143151
144152 (* * {1 Deprecated}
@@ -153,6 +161,10 @@ module Header : sig
153161 (* * This was renamed [recipient]. Hint: Run [ocamlmig migrate]. *)
154162 val for_ : t -> Vcs.User_handle .t option
155163 [@@ migrate { repl = Rel. recipient }]
164+
165+ (* * This was renamed [status]. Hint: Run [ocamlmig migrate]. *)
166+ val kind : t -> Status .t
167+ [@@ migrate { repl = Rel. status }]
156168end
157169
158170(* * A [Cr_comment.t] is an immutable value holding the information and metadata
@@ -172,7 +184,7 @@ val content : t -> string
172184val whole_loc : t -> Loc .t
173185
174186val header : t -> Header .t Or_error .t
175- val kind : t -> Kind .t
187+ val status : t -> Status .t
176188
177189(* * [priority t] represents the expectation as to when work on the CR is meant
178190 to happen. It is based on the header's qualifier except that XCRs and
@@ -228,7 +240,7 @@ module Private : sig
228240
229241 module Header : sig
230242 val create
231- : kind: Kind . t Loc.Txt. t
243+ : status: Status . t Loc.Txt. t
232244 -> qualifier:Qualifier. t Loc.Txt. t
233245 -> reporter:Vcs.User_handle. t Loc.Txt. t
234246 -> recipient:Vcs.User_handle. t Loc.Txt. t option
253265(* * This was renamed [priority]. Hint: Run [ocamlmig migrate]. *)
254266val work_on : t -> Priority .t
255267[@@ migrate { repl = Rel. priority }]
268+
269+ (* * This was renamed [status]. Hint: Run [ocamlmig migrate]. *)
270+ val kind : t -> Status .t
271+ [@@ migrate { repl = Rel. status }]
0 commit comments