@@ -305,34 +305,38 @@ let callback _conn req body =
305
305
Server. respond_string ~status: `OK ~body: " Handling minimization."
306
306
()
307
307
| None -> (
308
- match coqbot_ci_minimize_text_of_body body with
309
- | Some (options , requests ) ->
308
+ (* Since both ci minimization resumption and ci
309
+ minimization will match the resumption string, and we
310
+ don't want to parse "resume" as an option, we test
311
+ resumption first *)
312
+ match coqbot_resume_ci_minimize_text_of_body body with
313
+ | Some (options , requests , bug_file_contents ) ->
310
314
(fun () ->
311
315
init_git_bare_repository ~bot_info
312
316
>> = fun () ->
313
317
action_as_github_app ~bot_info ~key ~app_id
314
318
~owner: comment_info.issue.issue.owner
315
319
~repo: comment_info.issue.issue.repo
316
320
(ci_minimize ~comment_info ~requests ~comment_on_error: true
317
- ~options ~bug_file_contents: None ) )
321
+ ~options ~bug_file_contents: ( Some bug_file_contents) ) )
318
322
|> Lwt. async ;
319
323
Server. respond_string ~status: `OK
320
- ~body: " Handling CI minimization." ()
324
+ ~body: " Handling CI minimization resumption ." ()
321
325
| None -> (
322
- match coqbot_resume_ci_minimize_text_of_body body with
323
- | Some (options , requests , bug_file_contents ) ->
326
+ match coqbot_ci_minimize_text_of_body body with
327
+ | Some (options , requests ) ->
324
328
(fun () ->
325
329
init_git_bare_repository ~bot_info
326
330
>> = fun () ->
327
331
action_as_github_app ~bot_info ~key ~app_id
328
332
~owner: comment_info.issue.issue.owner
329
333
~repo: comment_info.issue.issue.repo
330
334
(ci_minimize ~comment_info ~requests
331
- ~comment_on_error: true ~options
332
- ~bug_file_contents: ( Some bug_file_contents) ) )
335
+ ~comment_on_error: true ~options ~bug_file_contents: None )
336
+ )
333
337
|> Lwt. async ;
334
338
Server. respond_string ~status: `OK
335
- ~body: " Handling CI minimization resumption ." ()
339
+ ~body: " Handling CI minimization." ()
336
340
| None ->
337
341
if
338
342
string_match
0 commit comments